I also use a non-Latin language, Chinese, in my current project. Only time I get 
question mark, if I can recall correctly, is 
the key is not set up properly in the property file. In JSP file, I have the following 
encode setting:

<%@ page contentType='text/html; charset=UTF-8' %>

I don't set resource bundle at all, only use the fmt tag from the i18n tag set. The 
i18n portion works correctly with 
accept-language as well as after language changed with calling the method config.set. 
I don't compile the code with 
i18n encoded argument. I do have one problem with i18n though: unable to write/read 
double byte code in/out DB (I 
am told that the problem is in my Java itself).

You might want to try using the fmt tag only and change your browser languge setting 
to test out whether all languges 
display properly or not.

Vernon 

 
11/7/2002 8:02:52 AM, "Joan Foo" <[EMAIL PROTECTED]> wrote:

>My property files are ok. The problem in my opinion has to do with the 
>encoding. I am not using just latin charsets. I need to have content in 
>english, greek, finnish and russian. Maybe i wasn't clear enough in my 
>previous posting about the languages. The english gets displayed just fine, 
>as well as greek (which is the default language of the system). But all 
>russian characters are displayed as question marks, an some finnish 
>characters are also displayed as question marks.
>As i also mentioned, i have a test tag that uses the same resources and 
>displays all four languages fine.
>What languages do you use?
>
>>From: Vernon Wu <[EMAIL PROTECTED]>
>>Reply-To: [EMAIL PROTECTED]
>>To: Tag Libraries Users List <[EMAIL PROTECTED]>
>>Subject: Re: utf8 encoding problem
>>Date: Wed, 06 Nov 2002 08:26:53 -0800
>>
>>
>>I also have i18n on with jstl in my project. I haven't have any display 
>>problem. Do you have all correspond property files
>>for all four language?
>>
>>11/6/2002 1:44:26 AM, "Joan Foo" <[EMAIL PROTECTED]> wrote:
>>
>> >Hi,
>> >I am trying to use the jstl i18n tag library to display multilingual
>> >content.
>> >I use UTF-8 encoding on my jsp pages. The problem is that the
>> >only content that gets displayed correctly is the one that
>> >uses the default of the system. The other ones get displayed as a series 
>>of
>> >question marks.
>> >First I tryied to use a properties file that I converted to 
>>Unicode-encoded
>> >with native2ascii. All the content got displayed as question marks.
>> >The next step was to use a ListResourceBundle and I created my java 
>>source
>> >files in UTF8. I used the -encoding UTF8 argument in javac.
>> >Only the default language got displayed as it should.
>> >
>> >I am under the impression, that the i18n tag overrides the encoding in 
>>jsp
>> >pages with something else (system defult?). Is there a workaround on 
>>this?
>> >Why UTF8 is not supported?
>> >
>> >I also wrote a simple test bean that uses the same resource bundle,
>> >and with that I was able to display all four languages I use as they are
>> >supposed to (using the ListResourceBundle).
>> >But I really don't want to re-invent the wheel, and would like to use the
>> >standard library.
>> >
>> >Thanks in advance.
>> >Joan
>> >
>> >_________________________________________________________________
>> >The new MSN 8: advanced junk mail protection and 2 months FREE*
>> >http://join.msn.com/?page=features/junkmail
>> >
>> >
>> >--
>> >To unsubscribe, e-mail:   
>><mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
>> >For additional commands, e-mail: 
>><mailto:taglibs-user-help@;jakarta.apache.org>
>> >
>> >
>>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:   
>><mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
>>For additional commands, e-mail: 
>><mailto:taglibs-user-help@;jakarta.apache.org>
>
>
>_________________________________________________________________
>Add photos to your messages with MSN 8. Get 2 months FREE*. 
>http://join.msn.com/?page=features/featuredemail
>
>
>--
>To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
>For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>
>
>




--
To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>

Reply via email to