A PHP script receives from the client a text in utf8 encoding. Encoding puts Jquery. On the server side, you need to convert the text encoding for Latin-1 (used in the database, change not).
iconv('UTF-8', 'LATIN-1', $text);
Instead of Latin-1 and tried LATIN1, ISO-8859-1, but still output an empty line. Suggested solutions:
— How to get JQuery to send the text to the desired encoding (on the client page ISO-8859-1). But in General the place is somehow encoded for compatibility (like Russian letters in the URL), so that this path is fraught with problems (or not?).
To solve the problem of the lack of encoding / impossible to convert it from utf8.
To pick up a similar set (in extreme cases).
Maybe someone solved a similar problem. I would be very grateful as the Internet is very stingy on the hints :).
Interesting, but doesn't work for me:stackoverflow.com/questions/374425/convert-utf8-ch...