Re: utf-8 resource files in struts

2007-05-01 Thread zkn


On 01.05.2007, at 17:21, Martin Gainty wrote:

I found this helpful on understanding how cyrillic characters are  
represented thru Unicode

http://en.wikipedia.org/wiki/Cyrillic_alphabet

If you're using windows so You'll need to load Cyrillic Input  
MethodEditor
http://www.microsoft.com/windows/ie/ie6/downloads/recommended/ime/ 
default.mspx


We are using OS X. But it's not a problem with fonts. We can display  
data in cyrillic. The problem only occurs when reading data from a  
resource file.


As well as Load in cyrillic fonts so you can actually see the  
correct characters for 'codepoints'

http://babel.uoregon.edu/yamada/fonts/russian.html

Anyone else???
M--
This email message and any files transmitted with it contain  
confidential
information intended only for the person(s) to whom this email  
message is
addressed.  If you have received this email message in error,  
please notify

the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - From: "zkn" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Tuesday, May 01, 2007 9:28 AM
Subject: utf-8 resource files in struts



Hello,

.

I'm trying to make a simple application that will support multiple  
languages. It works fine when I add two latin resource files for   
example _en and _fr.
But when I try to add _bg (Bulgarian, cyrillic) file which is  
saved  as utf-8 the text is not correctly displayed on the site.

.

I have added <%@ page contentType="text/html; charset=UTF-8"  
pageEncoding="UTF-8" language="java" %> to the jsp file but this   
doesn't help.

.


Any ideas?

.


Ozkan

.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: utf-8 resource files in struts

2007-05-01 Thread zkn


On 01.05.2007, at 17:01, Christopher Schultz wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ozkan,

zkn wrote:

I'm trying to make a simple application that will support multiple
languages. It works fine when I add two latin resource files for  
example

_en and _fr.
But when I try to add _bg (Bulgarian, cyrillic) file which is  
saved as

utf-8 the text is not correctly displayed on the site.


It used to be that all .properties files had to be in ISO-8859-1 form,
with escape sequences for non-Latin characters. If you have a UTF-8
properties file, transform it for deployment like this:

$ native2ascii -encoding UTF-8 your.properties  
your.properties.iso88591


The file your.properties.iso88591 should now contain the appropriate
information to be loaded by your app.


Thanks, that worked.

But why do you say "had to be"? Is there other way to do it? Or may  
be just I didn't understand you.

We tried with struts 1 and struts 2 and it wasn't working.


- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGN0gc9CaO5/Lv0PARAoPnAJ9q6aQkh61pHJoHKFIjfQy/xJwJXQCfZR0A
R5xChci2SLVvZ7ocL37HfrA=
=VdPP
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



utf-8 resource files in struts

2007-05-01 Thread zkn

Hello,

I'm trying to make a simple application that will support multiple  
languages. It works fine when I add two latin resource files for  
example _en and _fr.
But when I try to add _bg (Bulgarian, cyrillic) file which is saved  
as utf-8 the text is not correctly displayed on the site.


I have added <%@ page contentType="text/html; charset=UTF-8"  
pageEncoding="UTF-8" language="java" %> to the jsp file but this  
doesn't help.


Any ideas?

Ozkan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]