mapnik-org/mapnik — Issue #698: Shape encoding is not taken into account for field names
Author: artemp
Created: 2011-10-11 08:08:38+00:00
State: open
Labels: Shapefile_Input_Driver

If some field name contains non-ASCII characters and the encoding is latin1, the results in the featureset will contain field names encoded in latin1 instead of utf-8, so trying to convert to unicode without encoding information (OGCServer) will result in an error.

I’ve tried to create a patch for trunk, converting the field name using the encoding in the mapfile, but Feature keys are defined as std::string.

Also, using mapnik trunk the following error is shown:
{{{ Shape Plugin: error processing field attributes }}}