Locales not supported by Java
Hi to all of you,
I'm working on a project that manipulates data in hungarian language and i discovered that the JDK 1.4.02_07 cannot read nor write special characters from this language. In the JDK specifications (see page http://java.sun.com/j2se/1.4.2/docs/guide/intl/locale.doc.html), is it written that the support of the hangarian language was not tested.
Is there any one of you who have found a solution to make it support a language that uses the same characters?
Thanks a lot.
[514 byte] By [
yassouraa] at [2007-10-1 15:58:38]

Hi,
In fact, i'm using jsp pages to get and store data in an sqlserver database. the used keyboard is the haungarian one. when i use the charset iso-8859-1, the characters are correctly printed in the screen but not correctly uinserted in the database. when i use 8859-2, the specila hungarian characters are no more correctly printed in the html page but are correctly inserted into the database .
Please can some one help me?
I have been searching for a solution since Friday and i didn't found anthing and i have been blocked .
thanks to all of you .
> the specila hungarian characters are no more correctly printed in the html page
What this mean? Do they not correctly displayed by your browser?
What is the content-type of the page? What encoding do you use while generating the page?
Do you use something like this:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-2">
A hint. The special Hungarian characters (\u0150, \u0170, \u0151, \u0171) are contained in Latin-2 but not in Latin-1. However there is a fair approximation for them on the same code point there, the difference being
Special Hungarian accented characters in Latin-2:
o with double accent
u with double accent
The same code point in Latin-1 is occupied by:
o with tilde
u with circonflex
The latter characters do not exist in Hungarian, so they can be seen as a fair approximation to the right ones. Indeed, some time ago in a former stage of informatics, we had to put up with those.