How do I combine UTF-8 and ISO-8859-1 results from CURL ?
Posted: Wed Jan 16, 2008 3:55 am
Hi,
I am relatively new to PHP. I need to combine information from various sites, which I retrieve using CURL. However, some sites return text coded in UTF-8 while others return ISO-8859-1. The result is that all special (accented) characters from the latter sites get mangled when I combine the results in UTF-8.
Is there a way in PHP to convert ISO-8859-1 text to UTF-8?
Thanks, Peter
I am relatively new to PHP. I need to combine information from various sites, which I retrieve using CURL. However, some sites return text coded in UTF-8 while others return ISO-8859-1. The result is that all special (accented) characters from the latter sites get mangled when I combine the results in UTF-8.
Is there a way in PHP to convert ISO-8859-1 text to UTF-8?
Thanks, Peter