java:properties:avoid-escaping-characters
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
java:properties:avoid-escaping-characters [2020/08/18 19:56] – odefta | java:properties:avoid-escaping-characters [2020/08/18 20:01] – odefta | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Avoid escaping characters in java Properties class ====== | ====== Avoid escaping characters in java Properties class ====== | ||
- | After calling the **store** method, all the special characters from the key values will be escaped by \ | + | After calling the **store** method, all the special characters from the key values will be escaped by \ \\ |
- | Ex: instead of :test= we'll have in the properties file \:test\= | + | Ex: instead of :test= we'll have in the properties file \: |
To avoid this we need to override the store method: | To avoid this we need to override the store method: | ||
java/properties/avoid-escaping-characters.txt · Last modified: 2023/07/04 19:36 by 127.0.0.1