[Geoserver-users] Please see my problem

Hello dear sir,
I have a question about Geoserver.When I use Geoserver 1.5 and Postgresql 8.0.3(postgis),the preview map I add in Geoserver can display Chinese character correctly.But when I use the Postgresql 8.2.4 ,the preview map I add cann’t display Chinese character correctly.Even I change the encoding=“ISO-8859-1” to encoding=“utf-8” in the sld files.I hope you can see my problem.Thank you very much!
Sincerely yours,
Yang


人山人海盛景,尽在梦幻西游

yangzhaohui ha scritto:

Hello dear sir,
  I have a question about Geoserver.When I use Geoserver 1.5 and Postgresql 8.0.3(postgis),the preview map I add in Geoserver can display Chinese character correctly.But when I use the Postgresql 8.2.4 ,the preview map I add cann't display Chinese character correctly.Even I change the encoding="ISO-8859-1" to encoding="utf-8" in the sld files.I hope you can see my problem.Thank you very much!

Looks to me more an issue in creating the database. Have you specified
the right charsets when creating the database instance in the 8.2.4
install? I don't know exactly how to do that, but it's a common
issue in variuos databases.

Cheers
Andrea

I believe in newer versions of postgres UNICODE is the default encoding
when a database is created. However to specify manually you can use:

createdb -E UNICODE <dbname>

If you do a `psql -l` it should tell you the encoding of the database as
well.

-Justin

Andrea Aime wrote:

yangzhaohui ha scritto:

Hello dear sir,
  I have a question about Geoserver.When I use Geoserver 1.5 and
Postgresql 8.0.3(postgis),the preview map I add in Geoserver can
display Chinese character correctly.But when I use the Postgresql
8.2.4 ,the preview map I add cann't display Chinese character
correctly.Even I change the encoding="ISO-8859-1" to encoding="utf-8"
in the sld files.I hope you can see my problem.Thank you very much!

Looks to me more an issue in creating the database. Have you specified
the right charsets when creating the database instance in the 8.2.4
install? I don't know exactly how to do that, but it's a common
issue in variuos databases.

Cheers
Andrea

!DSPAM:4007,465c523c318622092453641!

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

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

!DSPAM:4007,465c523c318622092453641!

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

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

!DSPAM:4007,465c523c318622092453641!

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com