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.html

[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