[QGIS-trac] Re: [Quantum GIS] #1048: Mapserver export writes file
in wrong encoding
Quantum GIS
qgis at qgis.org
Mon Jan 19 13:30:53 EST 2009
#1048: Mapserver export writes file in wrong encoding
-----------------------------------------------------+----------------------
Reporter: lubaby | Owner: nobody
Type: bug | Status: new
Priority: major: does not work as expected | Milestone: Version 1.0.1
Component: MapServer export | Version: HEAD
Resolution: | Keywords:
Platform_version: | Platform: All
Must_fix: No | Status_info: 0
-----------------------------------------------------+----------------------
Comment (by pcav):
The plugin has been replaced by a new one, written in python.
However, essentially the same problem seems to occur, as I get an error
when trying to export a project with a high ascii in layer neme (città):
An error has occured while executing Python code:
Traceback (most recent call last):
File
"/usr/share/qgis/python/plugins/mapserver_export/mapserverexport.py", line
94, in run
result = exporter.writeMapFile()
File "/usr/share/qgis/python/plugins/mapserver_export/ms_export.py",
line 103, in writeMapFile
self.writeMapLayers()
File "/usr/share/qgis/python/plugins/mapserver_export/ms_export.py",
line 380, in writeMapLayers
layer_def += self.simpleRenderer(lyr, symbolNode)
File "/usr/share/qgis/python/plugins/mapserver_export/ms_export.py",
line 420, in simpleRenderer
class_def += " OUTLINECOLOR " + outlineNode.getAttribute('red')
+ ' ' + outlineNode.getAttribute('green') + ' ' +
outlineNode.getAttribute('blue') + "\n"
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 27:
ordinal not in range(128)
--
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1048#comment:1>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list