manojvelliyatt
asked on
Reading Euro(€) from property file
Hi ALL,
Can anybody give a solution for the below problem.
i have got a property file which has a got a euro(€) symbol in one of the property values.
like COMEDY_ANGRYKID.savetarget price=(€1) .
i want to read this value and comapre with another value that is stord in XML file.
i am using below code for reading the property file.
props.load(new FileInputStream( propertiesDirectory + "/nowletFunctions.properti es"));
definitly it is not returning me the proper value.Euro is not supported in ISO 8859-1 encoding which property file is using.
i have tried changing the Locale by passing -Duser.language=en -Duser.region=IE_EURO but no use.
How i can read that value from property file? is there is any other solution rather than changing the property file to XML file for storing the values.
All inputs are welcome.
regards
manoj velliyatt
Can anybody give a solution for the below problem.
i have got a property file which has a got a euro(€) symbol in one of the property values.
like COMEDY_ANGRYKID.savetarget
i want to read this value and comapre with another value that is stord in XML file.
i am using below code for reading the property file.
props.load(new FileInputStream( propertiesDirectory + "/nowletFunctions.properti
definitly it is not returning me the proper value.Euro is not supported in ISO 8859-1 encoding which property file is using.
i have tried changing the Locale by passing -Duser.language=en -Duser.region=IE_EURO but no use.
How i can read that value from property file? is there is any other solution rather than changing the property file to XML file for storing the values.
All inputs are welcome.
regards
manoj velliyatt
Why not use "eur" instead of "€"?
Try
COMEDY_ANGRYKID.savetarget price=\u20 ac1
or it could be
COMEDY_ANGRYKID.savetarget price=\\u2 0ac1
COMEDY_ANGRYKID.savetarget
or it could be
COMEDY_ANGRYKID.savetarget
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
:-)