Hi all,<div><br></div><div>This is really a question outside of OpenLayers, but since OpenLayers is on the client-side of things I think it's fair game.</div><div><br></div><div>I have an XML writer which is writing UTF-8 encoded data into an XML attribute.</div>
<div><br></div><div><div> $gml[] = '<ogr:SITE_>' . htmlentities($row['site_']) . '</ogr:SITE_>';</div><div> <span class="Apple-style-span" style="background-color: rgb(255, 255, 51);"> $gml[] = '<ogr:LOCATION1>' . htmlentities($row['location1'], ENT_QUOTES, 'UTF-8') . '</ogr:LOCATION1>';</span></div>
<div> $gml[] = '<ogr:PRESENCE_A>' . htmlentities($row['presence_a']) . '</ogr:PRESENCE_A>';</div><div> $gml[] = '<ogr:MATERIAL>' . htmlentities($row['material']) . '</ogr:MATERIAL>';</div>
<div> $gml[] = '<ogr:NEWSITE_>' . htmlentities($row['newsite_']) . '</ogr:NEWSITE_>'</div><div><br></div>the issue at hand is with the second line. When I leave out ENT_QUOTES, 'UTF-8', my search only returns one site. And when I comment out the line altogether, the application works fine, just one of my attributes returns "undefined" in my popups. When I leave that in, it only returns a select few of my POI's. The characterset in the UTF-8 table is transliterated arabic. I have the mysql_set_charset() function set on the database connection, and there's no problem echoing the characters into a table accompanying the application. Also, for the sites that are returned, the data is properly rendered in the popups.</div>
<div><br></div><div>What I think is happening is that the XML writer at some stage is tripping up because of the special characters, although they're rendered properly when they come through. Has anyone had any experiences similar to this? Yes, the XML is UFT-8 encoded. I'm willing to share all my code, but there's too much of it to bludgeon people with here.<br>
-- <br>Nicholas Efremov-Kendall<br>Fulbright Student 2009-2010, Ukraine<br><a href="mailto:nefremov@artsci.wustl.edu">nefremov@artsci.wustl.edu</a><br>c/o Halyna Yerko<br>Balzaka 92a, Kv 27<br>02232<br>Kyiv, Ukraine<br>(mob) +380963576524<br>
</div>