This project is read-only.

Attribute in Unicode font?

Oct 9, 2012 at 8:29 AM
Edited Oct 9, 2012 at 10:14 AM

Hi every body,

I am a new one, please help me to solve my problems in error in Unicode font.

I know that, we can use unicode font in dbf (shp file) by adding a file with same name and extension = .cpg (arcgis) or .cst (Geoserver WFS - shpzip).

So, could you please show me how to use unicode font in attribute of a Shp file in dotspatial?


I attached here an image show that I can read correct in ArcGIS but not in dotspatial.

Jan 25, 2015 at 12:41 PM
Hi dear buddy!
Do you find any solve way to this problem?
I also have this problem!
Could you help me please?
Many thanks!
Jan 27, 2015 at 5:53 AM
Edited Feb 9, 2015 at 8:10 AM
Hi CodePlex1987,

Unicode font is not a problem any more with Dotspatial Version 1.6 and 1.7.

To pass my problem, I add an additional file with same name as Shp file with extention = *.cgp. I use Unicode font (UTF-8). Therefore, In the content of the file, I enter UTF-8.

For example, my shp file is Dancu.shp; I create a new file with name: Dancu.cpg. In the content of the file, I enter UTF-8. (see the image below)
Hope this helpful.

GIS for Sustainable Development.

Ngô Đăng Trí
from Vietnam
Jan 27, 2015 at 10:17 PM

Thank you!
This helps me a lot with my brazilian shp files.
Jan 28, 2015 at 1:40 AM
You are welcome, ambiente.

Ngô Đăng Trí
from Vietnam
Jan 28, 2015 at 7:16 PM
Edited Jan 28, 2015 at 7:22 PM
Hi dear gis4sd agian!
Thanks for answering to me!
I am working with Geoserver 2.6, PostgreSQL 9.2, PostGIS2.1.2 and my Shapefile are in Farsi language.
I already convert my Shpfile to UTF-8 Unicode and my spatial databases are built in same Unicode, also my Geoserver is adjusted to Unicode UTF-8.
But when I download a WFS from Geoserver as a zip file it don't have a ".CPG" file! Just a ".CST" file by ISO-8859-1 Unicode.
And then when I opened this shapefile in ArcCatalog and etc my data are illegible!
I changed this ".CST" to UTF-8 and after created a ".CPG" file with UTF-8 Unicode but nothing is changed!
I attached pictures!
Thanks again!!oFAGASDZ!5AVyWd4guvhfhqZS0GiCXUUlzRZKlCY8RDkdKzB48Ok!0Y5kADqY!wPROaks8eBiv34z9UaVSZli4y81H1_8VDk2CZ8-DnmU!VUwUXZjC!qyoioLxLthErXwxkDoEqYB8kOs9jfLWMvECdrNxQ-sU!9NRhUaIL!Dihr2--6aPdGyVWr17k2vKGsbo9dkQ4dBLPQ03BRwIE!pF5DWCjQ!HsnjC_OA_JaPV-xPb9hx3S8q9CYBUWTfoYfqpgUDMgY
Jan 29, 2015 at 8:35 AM
Hi CodePlex1987,

Could you send me a sample Shape file? It is difficult for me to guess what is your problems with out a file.

happy to help you
Jan 29, 2015 at 8:57 AM
Hi dear!
Yes i sent you two same shapefile; "NumberOne" is my original shapefile and "NumberTwo" is that shapefile that I downloaded from my Geoserver!
Many Thanks dear!
Jan 29, 2015 at 9:39 AM
Edited Feb 9, 2015 at 8:11 AM
Could you send me an image of correct font attribute?
Which field is display incorrect, (I don't know which text is incorrect)
In my side, I think just Region_Top field has problem. However, this field displayed is not affected by an encript font .
Jan 29, 2015 at 11:29 AM
No my problem is in Farsi fields that specified by ?????? characters!
See please!
My original Shapefile
My problem as ??????
Jan 30, 2015 at 3:13 AM
Edited Jan 30, 2015 at 3:19 AM
Hi friend,

sorry for my misunderstood.
As I understand now, your source file has no problem with font. The problem happen after you upload the file on to WebGIS and download it back.

In my opinion, strings of the downloaded file is destroyed and we can not correct it. You should find solusion in Geoserver services.

Best regard.
Jan 30, 2015 at 8:08 AM
Hi dear friend.
Thanks for your attention!
If you find it's solve anytime, comment on this discussion for me!
Best regard.