<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Dear Yves<br>
<br>
native2ascii is definitely the right tool and the second line with the
unicode sequences like \u041 looks perfect.<br>
<br>
To be sure that the file is read properly, you should try either
debugging the code that accesses the text from the resource bundle, or
logging the text and checking the log file. But I would expect that the
access to the property file is not the problem - probably there is some
encoding problem later when the response is assembled.<br>
<br>
Did you check the output encoding for your page? The Encoding property
of the page should be set to something sensible like UTF-8, unless that
is your default encoding anyway. Please note also that the encoding
setting of one of the parent folders
will also carry over to all child resources that don't have their own
encoding property set.<br>
<br>
Maybe the text is converted into Win-1251 encoding and then re-encoded
as UTF-8 or the other way around? There is very probably some double
output encoding going where a combination of UTF-8 and something else
is applied to the bytes.<br>
<br>
Kind regards<br>
Christian<br>
<br>
<br>
<br>
<br>
<blockquote
cite="mid:AANLkTil75yTzogRT0qt72FknTlAepRzkxfIqdGz4urTy@mail.gmail.com"
type="cite">I am in the process of getting a website up and running in
Russian. I only have trouble with the contact forms. I think I encoded
the strings right,<br>
as you can see in this example:<br>
<br>
form.button.submit = Отправить<br>
form.button.submit =
\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c<br>
<br>
But it does not work. I use OpenCms 7.0.4/MySQL/Tomcat5.5/Debian Etch.<br>
On the form the string is shown as Отправить<br>
<br>
I used the java.-tool native2ascii to encode the file from UTF.<br>
What did I do wrong?<br>
<br>
Best regards,<br>
Yves<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a></pre>
</blockquote>
<br>
</body>
</html>