Opened 15 years ago

Closed 14 years ago

#525 closed defect (wontfix)

SHP Provider can't write a new SHP file with attribute name contains Chinese characters when machine's locale is English.

Reported by: jimmychen Owned by: danstoica
Priority: major Milestone: 3.5.0
Component: SHP Provider Version: 3.4.0
Severity: 3 Keywords:
Cc: External ID:

Description

When the machine system's locale is EN, the SHP Provider can't create a new SHP file with attribute name contains multi-bytes characters like Chinese or Asian characters. It seems that provider just do 'Ansi2Wide' with codepage in system's locale which is not always correct. Sometimes we have to use UTF-8 to make the conversion correct. I think it is a defect of Globalization.

Attachments (5)

ALK_250108_DD.shp (2.5 KB ) - added by jimmychen 15 years ago.
Shapefile with attribute name contains Chinese character.
ALK_250108_DD.shx (172 bytes ) - added by jimmychen 15 years ago.
ALK_250108_DD.cpg (3 bytes ) - added by jimmychen 15 years ago.
ALK_250108_DD.dbf (589 bytes ) - added by jimmychen 15 years ago.
ALK_250108_DD.idx (720 bytes ) - added by jimmychen 15 years ago.

Download all attachments as: .zip

Change History (7)

by jimmychen, 15 years ago

Attachment: ALK_250108_DD.shp added

Shapefile with attribute name contains Chinese character.

by jimmychen, 15 years ago

Attachment: ALK_250108_DD.shx added

by jimmychen, 15 years ago

Attachment: ALK_250108_DD.cpg added

by jimmychen, 15 years ago

Attachment: ALK_250108_DD.dbf added

by jimmychen, 15 years ago

Attachment: ALK_250108_DD.idx added

comment:1 by gregboone, 15 years ago

Owner: changed from gregboone to danstoica

comment:2 by danstoica, 14 years ago

Resolution: wontfix
Status: newclosed

Before apply schema the locale has to set like:

setlocale(LC_ALL, "Japanese");

Then the .cpg file will contain the codepage. Otherwise the system locale will be used.

Note: See TracTickets for help on using tickets.