#1488: v.in.dxf wrapper not working
-------------------------+--------------------------------------------------
 Reporter:  cmbarton     |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  7.0.0                    
Component:  wxGUI        |     Version:  svn-trunk                
 Keywords:  v.in.dxf     |    Platform:  Unspecified              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------

Comment(by glynn):

 Replying to [comment:12 cmbarton]:
 > Changing !EncodeString to use replace does not work. There is still the
 same error reported above.

 That's because utils.!GetValidLayerName() just uses str() rather than
 !EncodeString() or similar. str() uses the default encoding (not the
 locale's encoding), which is usually ASCII. And (AFAICT) it uses the
 equivalent of errors='strict', so that needs to be fixed regardless of how
 !DecodeString() behaves. Otherwise, you'll get a similar error for any
 non-ASCII character.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1488#comment:13>
GRASS GIS <http://grass.osgeo.org>

_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to