PHP unicode decode

I have a PHP script that reads string data from an .xls file (via PHP Excel Reader ). But some special characters are returned in Unicode encoding. For example, instead of "é", "\ xe9" is returned.

Is there a way, in PHP 5.2, how to decode a string with "\ x ??" characters in classic UTF-8?

Thanks.

+4
source share
1 answer

Just use utf8_encode()

Here is an example: http://codepad.org/62STmyAl

+3
source

Source: https://habr.com/ru/post/1434690/


All Articles