[Geoserver-users] Still the problem about chinese label

Hello everyone,
our team is working with the help of geoserver v1.4, but we are also in trouble about chinese labels.

we create SHP files and DBF files, some data are chinese characters in DBF files. When we label graphical elements in chinese by using DBF files, we also find some terrible letters, and can not show chinese characters correctly.

So, would someone please help us solve this problem? thanks a lot!!

Best regards,
Mess

___________________________________________________________
Mp3疯狂搜-新歌热歌高速下
http://music.yahoo.com.cn/?source=mail_mailbox_footer

Chinese characters will not work in DBF files. There is a hard coding
there that assumes a western char set. This is only the shapefile
reader though. If you put your data in to PostGIS, or Oracle, or
others, than it will read properly.

If you'd like to fix the shapefile issue I can point you at how to do
it. Or I can find someone to contract it for you. All you basically
have to do is add a parameter to the datastore factory that lets a user
specify a charset for the dbf file.

best regards,

Chris

Mess Cornell wrote:

Hello everyone,
our team is working with the help of geoserver v1.4, but we are also in trouble about chinese labels.

we create SHP files and DBF files, some data are chinese characters in DBF files. When we label graphical elements in chinese by using DBF files, we also find some terrible letters, and can not show chinese characters correctly.

So, would someone please help us solve this problem? thanks a lot!!

Best regards,
Mess

___________________________________________________________
Mp3疯狂搜-新歌热歌高速下
http://music.yahoo.com.cn/?source=mail_mailbox_footer

!DSPAM:1003,45ba0d32239558365517736!

------------------------------------------------------------------------

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

!DSPAM:1003,45ba0d32239558365517736!

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:1003,45ba0d32239558365517736!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

Drea Chris
I have changed the charset's canonical name from "ISO-8859-1" to "UTF-8" in
DbaseFileReader.java file.
DbaseFileReader can read Chinese text from dbf files now, but GeoServer
can't render chinese text yet.
How can I solve it? Could you point me a way?

Best regards,
Iso.

Chris Holmes wrote:

Chinese characters will not work in DBF files. There is a hard coding
there that assumes a western char set. This is only the shapefile
reader though. If you put your data in to PostGIS, or Oracle, or
others, than it will read properly.

If you'd like to fix the shapefile issue I can point you at how to do
it. Or I can find someone to contract it for you. All you basically
have to do is add a parameter to the datastore factory that lets a user
specify a charset for the dbf file.

best regards,

Chris

Mess Cornell wrote:

Hello everyone,
our team is working with the help of geoserver v1.4, but we are also in
trouble about chinese labels.

we create SHP files and DBF files, some data are chinese characters in
DBF files. When we label graphical elements in chinese by using DBF
files, we also find some terrible letters, and can not show chinese
characters correctly.

So, would someone please help us solve this problem? thanks a lot!!

Best regards,
Mess

___________________________________________________________
Mp3疯狂搜-新歌热歌高速下
http://music.yahoo.com.cn/?source=mail_mailbox_footer

!DSPAM:1003,45ba0d32239558365517736!

------------------------------------------------------------------------

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

!DSPAM:1003,45ba0d32239558365517736!

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:1003,45ba0d32239558365517736!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

begin:vcard
fn:Chris Holmes
n:Holmes;Chris
org:The Open Planning Project
adr:;;349 W. 12th Street, #3;New York;NY;10014;USA
email;internet:cholmes@anonymised.com
title:Managing Director, Strategic Development
x-mozilla-html:FALSE
url:http://topp.openplans.org
version:2.1
end:vcard

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/Still-the-problem-about-chinese-label-tf3122443.html#a8725362
Sent from the GeoServer - User mailing list archive at Nabble.com.

What exactly do you mean by cant render? Do you mean in the user interface? Outputting of gml?

Thanks,

-Justin

Iso Na wrote:

Drea Chris
I have changed the charset's canonical name from "ISO-8859-1" to "UTF-8" in
DbaseFileReader.java file. DbaseFileReader can read Chinese text from dbf files now, but GeoServer
can't render chinese text yet.
How can I solve it? Could you point me a way?

Best regards,
Iso.

Chris Holmes wrote:

Chinese characters will not work in DBF files. There is a hard coding
there that assumes a western char set. This is only the shapefile
reader though. If you put your data in to PostGIS, or Oracle, or
others, than it will read properly.

If you'd like to fix the shapefile issue I can point you at how to do
it. Or I can find someone to contract it for you. All you basically
have to do is add a parameter to the datastore factory that lets a user
specify a charset for the dbf file.

best regards,

Chris

Mess Cornell wrote:

Hello everyone,
our team is working with the help of geoserver v1.4, but we are also in
trouble about chinese labels.

we create SHP files and DBF files, some data are chinese characters in
DBF files. When we label graphical elements in chinese by using DBF
files, we also find some terrible letters, and can not show chinese
characters correctly.

So, would someone please help us solve this problem? thanks a lot!!

Best regards,
Mess

___________________________________________________________ Mp3疯狂搜-新歌热歌高速下
http://music.yahoo.com.cn/?source=mail_mailbox_footer

------------------------------------------------------------------------

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

!DSPAM:1003,45ba0d32239558365517736!

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:1003,45ba0d32239558365517736!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

begin:vcard
fn:Chris Holmes
n:Holmes;Chris
org:The Open Planning Project
adr:;;349 W. 12th Street, #3;New York;NY;10014;USA
email;internet:cholmes@anonymised.com
title:Managing Director, Strategic Development
x-mozilla-html:FALSE
url:http://topp.openplans.org
version:2.1
end:vcard

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
jdeolive@anonymised.com
The Open Planning Project
http://topp.openplans.org

Sorry, just read the rest of the thread, you mean rendering labels :). Interesting... will have to look into how the render handles labels in extended character sets.

Justin Deoliveira wrote:

What exactly do you mean by cant render? Do you mean in the user interface? Outputting of gml?

Thanks,

-Justin

Iso Na wrote:

Drea Chris
I have changed the charset's canonical name from "ISO-8859-1" to "UTF-8" in
DbaseFileReader.java file. DbaseFileReader can read Chinese text from dbf files now, but GeoServer
can't render chinese text yet.
How can I solve it? Could you point me a way?

Best regards,
Iso.

Chris Holmes wrote:

Chinese characters will not work in DBF files. There is a hard coding
there that assumes a western char set. This is only the shapefile
reader though. If you put your data in to PostGIS, or Oracle, or
others, than it will read properly.

If you'd like to fix the shapefile issue I can point you at how to do
it. Or I can find someone to contract it for you. All you basically
have to do is add a parameter to the datastore factory that lets a user
specify a charset for the dbf file.

best regards,

Chris

Mess Cornell wrote:

Hello everyone,
our team is working with the help of geoserver v1.4, but we are also in
trouble about chinese labels.

we create SHP files and DBF files, some data are chinese characters in
DBF files. When we label graphical elements in chinese by using DBF
files, we also find some terrible letters, and can not show chinese
characters correctly.

So, would someone please help us solve this problem? thanks a lot!!

Best regards,
Mess

___________________________________________________________ Mp3疯狂搜-新歌热歌高速下
http://music.yahoo.com.cn/?source=mail_mailbox_footer

------------------------------------------------------------------------

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:1003,45ba0d32239558365517736!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

begin:vcard
fn:Chris Holmes
n:Holmes;Chris
org:The Open Planning Project
adr:;;349 W. 12th Street, #3;New York;NY;10014;USA
email;internet:cholmes@anonymised.com
title:Managing Director, Strategic Development
x-mozilla-html:FALSE
url:http://topp.openplans.org
version:2.1
end:vcard

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
jdeolive@anonymised.com
The Open Planning Project
http://topp.openplans.org

Hrm. I had thought that the only point of breakdown was the shapefile.

Akira, did you and your team get Japanese labels in the WMS maps working? (apologies for emailing you directly, I remember you passed my last question on to someone else, but I can't recall their email address). Was there anything special that needed to be done?

Iso, do you get errors? Or just nothing rendering? What is the problem?

thanks,

Chris

Iso Na wrote:

Drea Chris
I have changed the charset's canonical name from "ISO-8859-1" to "UTF-8" in
DbaseFileReader.java file. DbaseFileReader can read Chinese text from dbf files now, but GeoServer
can't render chinese text yet.
How can I solve it? Could you point me a way?

Best regards,
Iso.

Chris Holmes wrote:

Chinese characters will not work in DBF files. There is a hard coding
there that assumes a western char set. This is only the shapefile
reader though. If you put your data in to PostGIS, or Oracle, or
others, than it will read properly.

If you'd like to fix the shapefile issue I can point you at how to do
it. Or I can find someone to contract it for you. All you basically
have to do is add a parameter to the datastore factory that lets a user
specify a charset for the dbf file.

best regards,

Chris

Mess Cornell wrote:

Hello everyone,
our team is working with the help of geoserver v1.4, but we are also in
trouble about chinese labels.

we create SHP files and DBF files, some data are chinese characters in
DBF files. When we label graphical elements in chinese by using DBF
files, we also find some terrible letters, and can not show chinese
characters correctly.

So, would someone please help us solve this problem? thanks a lot!!

Best regards,
Mess

___________________________________________________________ Mp3疯狂搜-新歌热歌高速下
http://music.yahoo.com.cn/?source=mail_mailbox_footer

------------------------------------------------------------------------

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

!DSPAM:1003,45ba0d32239558365517736!

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:1003,45ba0d32239558365517736!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

begin:vcard
fn:Chris Holmes
n:Holmes;Chris
org:The Open Planning Project
adr:;;349 W. 12th Street, #3;New York;NY;10014;USA
email;internet:cholmes@anonymised.com
title:Managing Director, Strategic Development
x-mozilla-html:FALSE
url:http://topp.openplans.org
version:2.1
end:vcard

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org