[GRASS-dev] [GRASS GIS] #3220: WinGRASS not recognizing accented utf-8 (nor cp1252) attribute values

GRASS GIS trac at osgeo.org
Sun Dec 11 08:31:00 PST 2016


#3220: WinGRASS not recognizing accented utf-8 (nor cp1252) attribute values
--------------------------+---------------------------------
  Reporter:  hellik       |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  7.2.0
 Component:  Default      |    Version:  svn-releasebranch72
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MSWindows 8
--------------------------+---------------------------------

Comment (by razz):

 Replying to [comment:7 marisn]:
 > ... Crucial info is:
 > * Windows locale (will influence assumed encoding);
 > * The mechanism of executing example command (CMD.exe will have
 different encoding than other places. Think ANSI vs OEM).

 [[BR]]
 Here is what I've got: Windows locale

 {{{
 systeminfo
 System Locale:             sv;Svenska
 Input Locale:              sv;Svenska
 }}}

 Originally, I've got

 {{{
 chcp
 850
 }}}

 But since it's not working, I tried using

 {{{
 chcp 1252
 }}}
 and the Nordic OEM:

 {{{
 chcp 865
 }}}

 before importing, in the cmd and from within GRASS in the command console.
 Nothing really changed.
 The rest of the reading I did was way over my head, sorry. But here's a
 link to the original shape file I'm having issues with. I can't attach it
 here because it's a bit over 2MB and I'm afraid that taking a sample from
 it and exporting it might change the encoding on export:
 https://www.dropbox.com/s/2ptgaf5owco63f0/stockholm.zip?dl=0 (the link
 should be valid for a month).

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3220#comment:8>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list