Frank<div><br></div><div>I am using <SrcDataSource>ODBC:..... in the OVF file.  I am parsing the file using OGRinfo via commandline and the characters are looking odd straight away.  Hadn't thought about using the spatial add-on for 2005, can that be called directly from the mapfile instead?  I usually just use shapefiles (performance surprising good), but have need of a SQL table of point data (all over Europe - hence the character issues) updated via a web-form to be called via MapServer and another application.  Any pointers appreciated!</div>
<div><br></div><div>Cheers</div><div>Chris</div><div><br><div class="gmail_quote">On 31 August 2012 21:16, Frank Warmerdam <span dir="ltr"><<a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Chris,<br>
<br>
I'm a bit unclear if the problem is happening in the MS SQL driver, or in the<br>
VRT driver.  If you use OGR directly against the MS SQL data are things<br>
messed up?  Are you using ODBC or the actual MSSQLSpatial driver?<br>
<br>
Best regards,<br>
Frank<br>
<div><div class="h5"><br>
On Fri, Aug 31, 2012 at 1:07 PM, Chris Jackson <<a href="mailto:webturtles@gmail.com">webturtles@gmail.com</a>> wrote:<br>
> All<br>
><br>
> One thought I did have, if the characters where html encoded in the SQL<br>
> table (e.g. ü as &#252;) is there anyway to get MapServer to render them<br>
> correctly again in a label?  I guess OGR can only deal with UTF-8 encoded<br>
> characters (I am using nvarchar fields, but in an ISO collation in SQL 2005<br>
> - not v.UTF-8 friendly I think!)<br>
><br>
> Thanks<br>
> Chris<br>
><br>
><br>
> On 30 August 2012 15:46, Chris Jackson <<a href="mailto:webturtles@gmail.com">webturtles@gmail.com</a>> wrote:<br>
>><br>
>> Hi all<br>
>><br>
>> I have OGR Virtual Format layer in my map file and the underlying .OVF is<br>
>> calling a flat MS SQL table of point data.  The layer displays fine, but I<br>
>> am having issues with umlauts etc for one of the attribute fields.  When I<br>
>> run the ogrinfo command on the layer, it has already messed up the encoding.<br>
>> In SQL it looks and queries fine.  Any pointers on how you can maintain the<br>
>> encoding?<br>
>><br>
>> Many thanks<br>
>> Chris<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> mapserver-users mailing list<br>
> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up   | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/~warmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>
and watch the world go round - Rush    | Geospatial Software Developer<br>
</font></span></blockquote></div><br></div>