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&#39;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[] = &#39;&lt;ogr:SITE_&gt;&#39; . htmlentities($row[&#39;site_&#39;]) . &#39;&lt;/ogr:SITE_&gt;&#39;;</div><div>  <span class="Apple-style-span" style="background-color: rgb(255, 255, 51);">  $gml[] = &#39;&lt;ogr:LOCATION1&gt;&#39; . htmlentities($row[&#39;location1&#39;], ENT_QUOTES, &#39;UTF-8&#39;) . &#39;&lt;/ogr:LOCATION1&gt;&#39;;</span></div>
<div>    $gml[] = &#39;&lt;ogr:PRESENCE_A&gt;&#39; . htmlentities($row[&#39;presence_a&#39;]) . &#39;&lt;/ogr:PRESENCE_A&gt;&#39;;</div><div>    $gml[] = &#39;&lt;ogr:MATERIAL&gt;&#39; . htmlentities($row[&#39;material&#39;]) . &#39;&lt;/ogr:MATERIAL&gt;&#39;;</div>
<div>    $gml[] = &#39;&lt;ogr:NEWSITE_&gt;&#39; . htmlentities($row[&#39;newsite_&#39;]) . &#39;&lt;/ogr:NEWSITE_&gt;&#39;</div><div><br></div>the issue at hand is with the second line. When I leave out ENT_QUOTES, &#39;UTF-8&#39;, my search only returns one site. And when I comment out the line altogether, the application works fine, just one of my attributes returns &quot;undefined&quot; in my popups. When I leave that in, it only returns a select few of my POI&#39;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&#39;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&#39;re rendered properly when they come through. Has anyone had any experiences similar to this? Yes, the XML is UFT-8 encoded. I&#39;m willing to share all my code, but there&#39;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>