Attribute in Unicode font?

Oct 9, 2012 at 7:29 AM
Edited Oct 9, 2012 at 9: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.

http://postimage.org/image/w4k1nxo7h/

Jan 25, 2015 at 11:41 AM
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 4:53 AM
Edited Feb 9, 2015 at 7: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)
  1. http://muabanpiano.net/Myfiles/Dancu.png
    Image
  2. http://muabanpiano.net/Myfiles/Unicode.png
    Image
Hope this helpful.

GIS for Sustainable Development.

Ngô Đăng Trí
from Vietnam
http://muabanpiano.net
Jan 27, 2015 at 9:17 PM
Hi,

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

Ngô Đăng Trí
from Vietnam
http://muabanpiano.net
Jan 28, 2015 at 6:16 PM
Edited Jan 28, 2015 at 6: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!
https://mega.co.nz/#!oFAGASDZ!5AVyWd4guvhfhqZS0GiCXUUlzRZKlCY8RDkdKzB48Ok
https://mega.co.nz/#!0Y5kADqY!wPROaks8eBiv34z9UaVSZli4y81H1_8VDk2CZ8-DnmU
https://mega.co.nz/#!VUwUXZjC!qyoioLxLthErXwxkDoEqYB8kOs9jfLWMvECdrNxQ-sU
https://mega.co.nz/#!9NRhUaIL!Dihr2--6aPdGyVWr17k2vKGsbo9dkQ4dBLPQ03BRwIE
https://mega.co.nz/#!pF5DWCjQ!HsnjC_OA_JaPV-xPb9hx3S8q9CYBUWTfoYfqpgUDMgY
Jan 29, 2015 at 7: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 7: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!
NumberOne
NumberTwo
Jan 29, 2015 at 8:39 AM
Edited Feb 9, 2015 at 7:11 AM
Hi,
Could you send me an image of correct font attribute?
Which field is display incorrect, (I don't know which text is incorrect)
  1. http://muabanpiano.net/Myfiles/Iranfont.png
    Image
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 10:29 AM
Hi,
No my problem is in Farsi fields that specified by ?????? characters!
See please!
My original Shapefile
My problem as ??????
Jan 30, 2015 at 2:13 AM
Edited Jan 30, 2015 at 2: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 7:08 AM
Hi dear friend.
Thanks for your attention!
If you find it's solve anytime, comment on this discussion for me!
Best regard.