Hi,
Native2ascii has generated Unicode characters on polish windows system.
But could not generate Unicode characters on Windows English Operating
System.

Thanks a lot to Lukasz and Laurie

-----Original Message-----
From: Laurie Harper [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 10, 2008 2:24 AM
To: user@struts.apache.org
Subject: Re: Reading Application Resource saved as UTF8 file and showing
polish characters in browser

Lukasz Lenart wrote:
> Hi,
> 
> 2008/6/9 Raghuveer <[EMAIL PROTECTED]>:
> 
>> Is it possible in struts to configure the controller to read the
>> application
>> resource file which is saved as UTF8 format?
>>
> 
> You can use filter from Spring

That wouldn't help, since it has nothing to do with resource file loading.

> It is possible to save the notepad file in UTF8 instead of ANSII.
> 
> If such notepad support UTF-8, you can use Notepad++ or JDK tool
> native2ascii which will convert ANSII file to UTF-8, there is also ant
task
> available or many IDEs support such convertion in fly

Unfortunately, it is not possible to *read* a resource file saved in 
this way. Application resource files are implemented under the covers 
using Java's PropertyResourceBundle which specifies [2] the file format 
as Latin-1 (ISO-8859-1) encoding with Unicode escapes.

What you *can* do, however, is author the files in UTF-8 and then 
post-process them into the correct encoding during the build process, 
using any of the tools/techniques Lukasz suggests.

L.

[1] 
http://java.sun.com/j2se/1.5.0/docs/api/java/util/PropertyResourceBundle.htm
l

[2] 
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html#encoding



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

Reply via email to