Hi,
I fetch web pages using Zend_Http (I send out POST data, fetch the results, and so on)
I have no problem with that.
I did a mb_detect_encod ing() of the returned HTML and the function says it's UTF-8 encoded.
Parts of the returned HTML must be send back to the server. I store these parts into PHP strings.
The problem is that when I send back these PHP strings, all special characters (accents) are truncaded with garbages !
---
(-) The PHP script itself is saved in UTF-8.
(-) I tried to utf8_encode() the returned HTML before storing data into PHP strings
Do you have any tips ? Something trivial that I am missing ?
Thank you
I fetch web pages using Zend_Http (I send out POST data, fetch the results, and so on)
I have no problem with that.
I did a mb_detect_encod ing() of the returned HTML and the function says it's UTF-8 encoded.
Parts of the returned HTML must be send back to the server. I store these parts into PHP strings.
The problem is that when I send back these PHP strings, all special characters (accents) are truncaded with garbages !
---
(-) The PHP script itself is saved in UTF-8.
(-) I tried to utf8_encode() the returned HTML before storing data into PHP strings
Do you have any tips ? Something trivial that I am missing ?
Thank you
Comment