nanuqcz
nanuqcz

Reputation: 1424

PHP unicode decode

I have a PHP script that read string data from .xls file (via PHP Excel Reader). But some special characters it returns in unicode encoded format. For example, instead of "é" returns "\xe9".

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

Thanks.

Upvotes: 5

Views: 12790

Answers (1)

wesside
wesside

Reputation: 5740

Just use utf8_encode()

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

Upvotes: 4

Related Questions