L
L
Larisa .•º2018-07-30 16:29:26
Django
Larisa .•º, 2018-07-30 16:29:26

How to force InternetExplorer to send a request to search for Russian words in the required encoding?

Tell me, there is some api implemented using django rest fraemwork, and there is a search field - Name . For searching I use django rest fraemwork SearchFilter . And in all browsers, the search for Russian words is carried out normally, and InternetExplorer gives out empty, as it converts Russian words into hieroglyphs, like 'Tîvar'. Not mine, can anyone come across?
In Chrome : http://127.0.0.1:8000/api/v1/substations/?search=Product, the server receives a search word in the required encoding .
In InternetExplor: http://127.0.0.1:8000/api/v1/substations/?search=Product, the word 'Tovar' comes to the server

# использование  стандартного 
   SearchFilter(BaseFilterBackend):
        ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-07-30
@UPSA

Python version? If 2.7 then there are a lot of problems with UTF. Monitor the conversion of text variables to UTF.
Check if html is present: (it was such that the module returned an incorrect encoding) and the request was already sent with incorrect data. Check what is in InternetExplorer - VIEW - ENCODING? Autoselect or hardcoded encoding? And you may also have to somehow climb into the console and manually call the data. There may be a problem both in returning data from the database and in the query itself. In short - The problem with the encoding, but you have to climb EVERYWHERE. GOOD LUCK !!! <meta charset="utf-8"/>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question