Opened 16 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.
Change History (7)
by , 16 years ago
Attachment: | ALK_250108_DD.shp added |
---|
by , 16 years ago
Attachment: | ALK_250108_DD.shx added |
---|
by , 16 years ago
Attachment: | ALK_250108_DD.cpg added |
---|
by , 16 years ago
Attachment: | ALK_250108_DD.dbf added |
---|
by , 16 years ago
Attachment: | ALK_250108_DD.idx added |
---|
comment:1 by , 16 years ago
Owner: | changed from | to
---|
comment:2 by , 14 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
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.
Shapefile with attribute name contains Chinese character.