I
I
iOS Dav2017-06-07 12:36:48
PHP
iOS Dav, 2017-06-07 12:36:48

I can't fix this encoding error, how can I solve it?

SOAP-ERROR: Encoding: string '\x94...' is not a valid utf-8 string
In short, as far as I understand, the text that is sent via SOAP must be in valid utf-8 encoding. The text itself consists only of Latin letters. Script in yutf-8 encoding. I tried to pass the text through the functions: utf8_encode('zzzz'), mb_convert_encoding('zzzz', "utf-8", "auto"); did not help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fortop, 2017-06-07
@Fortop

A text consisting only of Latin letters is already a valid utf8 text; it does not need to be encoded additionally
\x94 - this is not Latin, these are additional codes from the higher digits of ASCII and related one-byte encodings, usually there were Cyrillic, diacritics, pseudographics and so on.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question