Re: XML, strings and foreign (swedish/danish) characters

From: Date: Tue, 02 Dec 2003 15:35:36 +0000
Subject: Re: XML, strings and foreign (swedish/danish) characters
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-171589@lists.php.net to get a copy of this message
Victor Spång Arthursson wrote:
I'm on the point of almost giving up trying to get XML and PHP to sing along, but I'll throw out a question here first. I'm having severe problems getting PHP and XML to work with XML-files that contains foreign characters. Doesnt matter if i type the foreign characters in by myself hardcoded in the PHP-script, or if I get them from external XML-files, or if I get them directly from the database. utf8_encode() helps a bit, in the way that it makes the script work at least, but instead of the string "mængde" PHP outputs "mængde"…
After processing the xml, use utf8_decode to get back to iso-8859-1
Is there any way to get XML to work together with PHP, or should I simply resign and try with ASP instead? Very thankful for any help that points in the right direction… Sincerely Victor


« previous php.general (#171589) next »