<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:14px"><div id="yui_3_16_0_1_1445876394335_17863"><span id="yui_3_16_0_1_1445876394335_17865">Well, apparently there's a problem with greek letters. I created a shapefile from scratch and saved it with UTF-8 encoding. A ".cpg" file is created along the shapefile as well that has only the "UTF-8" statement. I entered greek letters in the shapefile's field and used</span></div><div id="yui_3_16_0_1_1445876394335_17863"><span><br></span></div><div id="yui_3_16_0_1_1445876394335_17863"><span> ENCODING UTF-8 </span></div><div id="yui_3_16_0_1_1445876394335_17863"><span><br></span></div><div id="yui_3_16_0_1_1445876394335_17863" dir="ltr"><span id="yui_3_16_0_1_1445876394335_18533">in the layer level. Also dbfdump gives me UTF-8 Unicode text.</span></div><div id="yui_3_16_0_1_1445876394335_17863" dir="ltr"><span><br></span></div><div id="yui_3_16_0_1_1445876394335_17863" dir="ltr"><span id="yui_3_16_0_1_1445876394335_18532">Still getting weird symbols. The only readable letter is "π" </span></div><div id="yui_3_16_0_1_1445876394335_17863" dir="ltr"><span><br></span></div><div id="yui_3_16_0_1_1445876394335_17863" dir="ltr">Thank you.</div><div id="yui_3_16_0_1_1445876394335_17863" dir="ltr"><br></div><div id="yui_3_16_0_1_1445876394335_17863" dir="ltr">-Stefanos</div><div id="yui_3_16_0_1_1445876394335_17863" dir="ltr"><span><br></span></div><div id="yui_3_16_0_1_1445876394335_17863" dir="ltr"><br></div><div id="yui_3_16_0_1_1445876394335_17863" dir="ltr"><span><br></span></div><div id="yui_3_16_0_1_1445876394335_17863" dir="ltr"><span><br></span></div> <br><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 14px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> Στις 9:11 μ.μ. Δευτέρα, 26 Οκτωβρίου 2015, ο/η thomas bonfort <thomas.bonfort@gmail.com> έγραψε:<br> </font> </div> <br><br> <div class="y_msg_container">> RFC suggests all characters should iconv'd to<br clear="none">> UTF-8. Am I right?<br clear="none">If you're creating the datasource from scratch and have the choice,<br clear="none">then yes, use UTF8. If you have an exisiting datasource you cannot<br clear="none">modify, just set the LAYER->ENCODING to ISO-8859 (well, the one that<br clear="none">is is supported by iconv) and the transormation to utf8 will be done<br clear="none">automatically and internally by mapserver.<br clear="none"><br clear="none">--<br clear="none">thomas<div class="yqt3899204372" id="yqtfd93244"><br clear="none"><br clear="none">><br clear="none">><br clear="none">> -Stefanos<br clear="none">><br clear="none">><br clear="none">><br clear="none">><br clear="none">> Στις 8:25 μ.μ. Δευτέρα, 26 Οκτωβρίου 2015, ο/η thomas bonfort<br clear="none">> <<a shape="rect" ymailto="mailto:thomas.bonfort@gmail.com" href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a>> έγραψε:<br clear="none">><br clear="none">><br clear="none">> Stefanos,<br clear="none">> First off, you *need* to know the encoding that's actually used by<br clear="none">> each datasource, there's no way of guessing that reliably<br clear="none">> programmatically. And since MapServer 7, the ENCODING keyword has been<br clear="none">> moved to the LAYER level:<br clear="none">> <a shape="rect" href="http://mapserver.org/development/rfc/ms-rfc-103.html" target="_blank">http://mapserver.org/development/rfc/ms-rfc-103.html</a><br clear="none">> If you have the possibility, and/or in the future, always use UTF8<br clear="none">> inside your datasources.<br clear="none">><br clear="none">> regards,<br clear="none">> thomas<br clear="none">><br clear="none">> On 26 October 2015 at 19:16, Stefanos Anastasiou <<a shape="rect" ymailto="mailto:emperor_stef@yahoo.gr" href="mailto:emperor_stef@yahoo.gr">emperor_stef@yahoo.gr</a>><br clear="none">> wrote:<br clear="none">>> Hello everybody.<br clear="none">>><br clear="none">>> I'm having a small issue with truetype and encoding in greek. Instead of<br clear="none">>> normal letters I'm getting weird symbols or even shapes.<br clear="none">>><br clear="none">>> iconv -l | grep {GREEK | ISO-8859-7 | WINDOWS-1253} are all<br clear="none">>> present in the system.<br clear="none">>><br clear="none">>><br clear="none">>> My Mapserver version:<br clear="none">>><br clear="none">>> MapServer version 7.0.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ<br clear="none">>> SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=XMP<br clear="none">>> SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT<br clear="none">>> SUPPORTS=WFS_SERVER<br clear="none">>> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER<br clear="none">>> SUPPORTS=FASTCGI<br clear="none">>> SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL<br clear="none">>> INPUT=SHAPEFILE<br clear="none">>><br clear="none">>><br clear="none">>> My LABEL object in my code is the following:<br clear="none">>><br clear="none">>> LABEL<br clear="none">>> TYPE truetype<br clear="none">>> FONT arial<br clear="none">>> SIZE 6<br clear="none">>> PARTIALS TRUE<br clear="none">>> ENCODING GREEK<br clear="none">>> END<br clear="none">>><br clear="none">>> I also tried ENCODING ISO-8859-7 and WINDOWS-1253. But getting symbols<br clear="none">>> instead of letters. The closest to human readable is with encoding<br clear="none">>> UTF-8...<br clear="none">>> but still.<br clear="none">>><br clear="none">>> I'm probably missing something here.What is the problem ?<br clear="none">><br clear="none">>><br clear="none">>><br clear="none">>><br clear="none">>><br clear="none">>><br clear="none">>><br clear="none">>> _______________________________________________<br clear="none">>> mapserver-users mailing list<br clear="none">>> <a shape="rect" ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br clear="none">>> <a shape="rect" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br clear="none">><br clear="none">><br clear="none">></div><br><br></div> </div> </div> </div></div></body></html>