[GeoNetwork-users] UTF-8 encoding problem

Hello there,

I have some problems with displaying UTF-8 characters, like polish "ą, ę, ś
etc". I think, that the problem is caused by default Tomcat's server
configuration set onto ISO coding. I've tried two steps, that didn't get any
results:

1) added parameter URIEncoding="UTF-8" to <connector> element to
/conf/server.xml file
2) added -Dfile.encoding=UTF-8 to the tomcat’s java startup options

I read, that it could be nessesary to add an encoding filter to web.xml
Tomcat configuration file. How it supposed to look like and where I should
put it exactly ? Or maybe there is some other way to avoid this problem ??

Regards.
Łukasz
--
View this message in context: http://www.nabble.com/UTF-8-encoding-problem-tf4316620s18419.html#a12290983
Sent from the geonetwork-users mailing list archive at Nabble.com.

Hi all,

I solved my problem with encoding Polish characters. Problem appears when I
wanted to save metadata file after editing or when I was changing the view
and only in this case. I spent a lot of time investigating this problem. I
tried to change Tomcat configuration and different Tomcat versions. I tried
to reinstall database and modify parameters (I'm using Oracle). I was
analysing also GeoNetwork and Jeeves source code. None of this helped (it
didn't solved my problem). At the end I was investigating xsl files precisly
metadata-edit.xsl. The problem was that in edit mode editing form has data
in UTF-8, but I don't know why they were displayed in a browser as
ISO-8859-1. I needed only to erase enctype="multipart/form-data" parameter
from "mainForm" form. Without this attribute everything works fine.

Lukasz_Sobotowski wrote:

Hello there,

I have some problems with displaying UTF-8 characters, like polish "ą, ę,
ś etc". I think, that the problem is caused by default Tomcat's server
configuration set onto ISO coding. I've tried two steps, that didn't get
any results:

1) added parameter URIEncoding="UTF-8" to <connector> element to
/conf/server.xml file
2) added -Dfile.encoding=UTF-8 to the tomcat’s java startup options

I read, that it could be nessesary to add an encoding filter to web.xml
Tomcat configuration file. How it supposed to look like and where I should
put it exactly ? Or maybe there is some other way to avoid this problem ??

Regards.
Łukasz

--
View this message in context: http://www.nabble.com/UTF-8-encoding-problem-tf4316620s18419.html#a12894892
Sent from the geonetwork-users mailing list archive at Nabble.com.

Thanks Lukasz, we already fixed this bug in the final release.

Cheers,
Andrea

Hi all,

I solved my problem with encoding Polish characters. Problem appears when I
wanted to save metadata file after editing or when I was changing the view
and only in this case. I spent a lot of time investigating this problem. I
tried to change Tomcat configuration and different Tomcat versions. I tried
to reinstall database and modify parameters (I'm using Oracle). I was
analysing also GeoNetwork and Jeeves source code. None of this helped (it
didn't solved my problem). At the end I was investigating xsl files precisly
metadata-edit.xsl. The problem was that in edit mode editing form has data
in UTF-8, but I don't know why they were displayed in a browser as
ISO-8859-1. I needed only to erase enctype="multipart/form-data" parameter
from "mainForm" form. Without this attribute everything works fine.

Lukasz_Sobotowski wrote:
>
> Hello there,
>
> I have some problems with displaying UTF-8 characters, like polish "ą, ę,
> ś etc". I think, that the problem is caused by default Tomcat's server
> configuration set onto ISO coding. I've tried two steps, that didn't get
> any results:
>
> 1) added parameter URIEncoding="UTF-8" to <connector> element to
> /conf/server.xml file
> 2) added -Dfile.encoding=UTF-8 to the tomcat’s java startup options
>
> I read, that it could be nessesary to add an encoding filter to web.xml
> Tomcat configuration file. How it supposed to look like and where I should
> put it exactly ? Or maybe there is some other way to avoid this problem ??
>
> Regards.
> Łukasz
>

Hallo Łukasz,

you found a way to solve this problem?
I have tried to use "é" and then uploaded a file in GN 2.2 but it does not
work here too. The "é" becomes something like "é". I thought it is a
servlet container problem but it has to be something else.

thanks

roger

Lukasz_Sobotowski wrote:

Hello there,

I have some problems with displaying UTF-8 characters, like polish "ą, ę,
ś etc". I think, that the problem is caused by default Tomcat's server
configuration set onto ISO coding. I've tried two steps, that didn't get
any results:

1) added parameter URIEncoding="UTF-8" to <connector> element to
/conf/server.xml file
2) added -Dfile.encoding=UTF-8 to the tomcat’s java startup options

I read, that it could be nessesary to add an encoding filter to web.xml
Tomcat configuration file. How it supposed to look like and where I should
put it exactly ? Or maybe there is some other way to avoid this problem ??

Regards.
Łukasz

--
View this message in context: http://www.nabble.com/UTF-8-encoding-problem-tp12290983s18419p15745573.html
Sent from the geonetwork-users mailing list archive at Nabble.com.