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 ??
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 ??
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
>
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 ??