cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Curl encoding problem

From: Nis <nis_at_ubernissen.dk>
Date: Tue, 27 Feb 2001 21:52:28 +0100

I have just found out that, in my case, the encoding problem is
made by the PHP DOM XML. module and NOT the Curl module.
It converts the XML document to utf-8 and when special chars are
present in that document, they get fuc... up.
Here is the PHP documentation
http://www.php.net/manual/en/ref.xml.php#xml.encoding

So to escape this, in DOM XML, I use utf8_decode( string) when
the clean text is needed.
Here is the PHP documentation
http://www.php.net/manual/en/function.utf8-decode.php

Happy coding ;-)

_______________________________________________
Curl-and-php mailing list
Curl-and-php_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-and-php
Received on 2001-02-27