Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Character '\' is lost when reading a String from a property file.

807606Jan 25 2007 — edited May 7 2007
Hi all,

I have encrypted information inside a property file, but when loading properties in my program, the String object used to store the value is changed by the lost of all �\� characters

# EIS password saved in the property file
password=WPLqQE0DlVF8Sg\=\=

#Value loaded in my String object
WPLqQE0DlVF8Sg==

Why is this happening? I use java.util.Properties java class to store and load my properties, and it is supposed to do it with the same encoding (ISO 8859-1).

Please, can someone explain me why this happened and how to solve it?

Best regards.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 4 2007
Added on Jan 25 2007
24 comments
2,559 views