We implement i18n using JSTL and one such issue is the resource texts and having non-ISO 8859 characters defined in .properties file (The inidic languages like the face) can not be provided by the tag. Diving through the code and code of the BundleHelper class, we finally found that it is internally using the ResourceBundle.getBundle method which instead uses the PropertyResourceBundle to load the .properties file after the form of the resource bundle In. Internal java.util.Properties # Load (InputStream) method which does not support the reading of non-ISO 8859 characters and is working around / u to express such character in hex Depending on the hex hex hex format, which is not completely impractical in the whole case. Properties file is for Hindi language! Is there any work for this? I tried to use the .properties file in the XML format, but it is not recognized by the PropertyResourceBundle! Environmental details are: Jdk 1.5, Weblogic 9.2
is to use JDK 1.5? If you can move up to 1.6 then you can use the load (reader)
overload which will allow you to store the file in other encoding (such as UTF-8). I'm not sure how this would recover with PropertyResourceBundle.
Do not forget that to work with ISO-8859-1 files, you use the format to edit the file. You can convert a file from a different encoding Can use for Place your "source" property files in the form of UTF-8, then run native2asci
as part of your build. For example:
Basic 2 ACCI- Encoding UTF-8Fu.properties.tf8Fu.Properties
Comments
Post a Comment