Strange encoding when using PHP with translated text.

Posted by The Rook on Stack Overflow See other posts from Stack Overflow or by The Rook
Published on 2010-03-14T02:48:23Z Indexed on 2010/03/14 2:55 UTC
Read the original article Hit count: 417

Filed under:
|
|

I am using Google translate with PHP to translate text. 99% of the text comes back with the expected encoding. However, A few characters become malformed and appear to be encoded incorrectly. How can I account for this encoding using PHP?

Hierdie is \u0026#39;n
This is in afrikaans, but other languages are also affected.

© Stack Overflow or respective owner

Related posts about translation

Related posts about php