Hi Iwao,
Thank you very much for telling about this editor. It works like a
charm. Now the property file is written with properly escaped UTF8
symbols. Its amazing how Java sometimes gets everything right but
misses one small detail thus giving developers untold headaches.
Hopefully this editor will allow me to work with all the languages and
thus become the editor of choice. If not, I've also discovered that
UltraEdit has "Unicode - ASCII escaped" option as well.
Sincerely,
Daniil
Iwao AVE! wrote:
Hi Daniil,
It is not a russian specific problem.
Try specifying -encoding utf8 when executing native2ascii.
I use the following editor for editing .properties files.
http://propedit.sourceforge.jp/index_en.html
Hope this helps,
Iwao
on 09.5.9 4:08 AM Daniil Sosonkin said the following:
Hi,
I'm trying to create a localized pages using stripes and I'm running
into some issues. It seems to me that I've figured out how Stripes uses
the files, but I cannot get it to display the content correctly. Here's
what I have:
<init-param>
<param-name>LocalePicker.Locales</param-name>
<param-value>en_US:UTF-8,ru:UTF-8</param-value>
</init-param>
And then I have 2 files:
StripesResources.properties
StripesResources_ru.properties
The problem happens with the 2nd (_ru) file. I go to notepad, paste the
text in russian and save it as UTF-8. Then I use native2ascii.exe to
convert the file into ASCII. Stripes correctly picks my locale to RU and
encoding as UTF8, but all the text on the page is just a junk
characters. If I simply save as UTF-8 from notepad then nothing ever
shows up; as if the file wasn't even loaded.
After doing some googling I figured out that the problem lies in
resource bundles themselves and I must do native2ascii. But nothing
works anyway. Can someone help me out? Is it only with russian or other
languages as well? On a side note, I couldn't figure how to write a
resource bundle to load from the database either.
Any help is appreciated!
Daniil
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users
|
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users