Hello,
My name is Pavel Sigarteu, I work for Infopulse Romania.
We want to create a site that supports local character set (
ISO-8859-2 ). and we have a problem.
We have tested with 2 pages and a database. The first page displays
a form and the second page inserts the content of the form in the DB and
displays the content available in the DB.
If we set the encoding in the pages to ISO-8859-2 (<%@page
contentType="text/html; charset=ISO-8859-2"%>) the pages will display
correctly the characters from the DB. The problem appears wrhen reading
the properties from the Request. It sims like the strings returned from
request come encoded in ISO-8859-1 and to be able to display them
correctly or to insert them in the DB we need to convert them to
ISO-8859-2.
Is this normal? Are we doing something wrong? (I hope so ... because
it will be kinda ugly to convert every string from the request :(
Plese tell me if there is a way to correctly specify the encoding to
be used.
Thank you,
Pavel