<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - How to parse xml files with special Unicode chars? - Comments</title>
 <link>http://www.newlc.com/en/topic-16782</link>
 <description>Comments for &quot;How to parse xml files with special Unicode chars?&quot;</description>
 <language>en</language>
<item>
 <title>Re: How to parse xml files with special Unicode chars?</title>
 <link>http://www.newlc.com/en/topic-16782#comment-42928</link>
 <description>&lt;p&gt;Well, now it works. My text wasn&#039;t UTF-8 encoded even header&#039;s charset was UTF-8. I thought that all texts are automatically encoded to UTF-8 if header&#039;s charset is utf-8. I was wrong. &lt;/p&gt;

&lt;p&gt;I added utf_8_encode() call to my php code and now it works. &lt;/p&gt;

&lt;p&gt;Before: return new SOAP_Value(&#039;Osoite&#039;,&#039;string&#039;, $rivi[&quot;osoite&quot;])&lt;br /&gt;
Now:    return new SOAP_Value(&#039;Osoite&#039;,&#039;string&#039;, &lt;span style=&quot;font-weight:bold&quot;&gt;utf8_encode(&lt;/span&gt;$rivi[&quot;osoite&quot;])&lt;span style=&quot;font-weight:bold&quot;&gt;)&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Thanks for the help!&lt;/p&gt;

&lt;p&gt;BR,&lt;br /&gt;
Mikko&lt;/p&gt;</description>
 <pubDate>Tue, 13 Nov 2007 17:46:00 +0100</pubDate>
 <dc:creator>MikkoH</dc:creator>
 <guid isPermaLink="false">comment 42928 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: How to parse xml files with special Unicode chars?</title>
 <link>http://www.newlc.com/en/topic-16782#comment-42926</link>
 <description>&lt;p&gt;rbrunner, maybe you are right. I noticed same thing. Have to take closer look to this problem today.&lt;/p&gt;</description>
 <pubDate>Tue, 13 Nov 2007 17:40:29 +0100</pubDate>
 <dc:creator>MikkoH</dc:creator>
 <guid isPermaLink="false">comment 42926 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: How to parse xml files with special Unicode chars?</title>
 <link>http://www.newlc.com/en/topic-16782#comment-42908</link>
 <description>&lt;p&gt;Maybe your XML files are not correct, in quite a subtle way? E.g. the very first line says encoding=&quot;UTF-8&quot;, but then in the content the umlaut characters are not really in UTF-8 but in ISO-8859-1 / Latin 1, which is a contradiction that a parser probably won&#039;t tolerate.&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Mon, 12 Nov 2007 22:07:31 +0100</pubDate>
 <dc:creator>rbrunner</dc:creator>
 <guid isPermaLink="false">comment 42908 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: How to parse xml files with special Unicode chars?</title>
 <link>http://www.newlc.com/en/topic-16782#comment-42907</link>
 <description>&lt;p&gt;I do not have your problem. I can use the XML parser (not the whole Web Service API though) and successfully parse content with many nordic characters (ö, æ, ø, etc....).&lt;/p&gt;

&lt;p&gt;I do parse content in UTF8 format (thus stored in a TDes8).&lt;/p&gt;</description>
 <pubDate>Mon, 12 Nov 2007 19:12:33 +0100</pubDate>
 <dc:creator>eric</dc:creator>
 <guid isPermaLink="false">comment 42907 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: How to parse xml files with special Unicode chars?</title>
 <link>http://www.newlc.com/en/topic-16782#comment-42905</link>
 <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Does anybody have ideas to solve this kind of problem. I try to use the nokia Web Services API, but I get the same error (EXmlInvalidToken) when xml response contains ä or ö characters.&lt;/p&gt;

&lt;p&gt;br,&lt;br /&gt;
Mikko&lt;/p&gt;</description>
 <pubDate>Mon, 12 Nov 2007 18:49:51 +0100</pubDate>
 <dc:creator>MikkoH</dc:creator>
 <guid isPermaLink="false">comment 42905 at http://www.newlc.com</guid>
</item>
<item>
 <title>How to parse xml files with special Unicode chars?</title>
 <link>http://www.newlc.com/en/topic-16782</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/topic-16782&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/topic-16782#comments</comments>
 <category domain="http://www.newlc.com/en/forums/symbian-c">Symbian C++</category>
 <pubDate>Mon, 20 Nov 2006 03:10:22 +0100</pubDate>
 <dc:creator>harry_zhang</dc:creator>
 <guid isPermaLink="false">16378 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
