It might sound a basic question for you. But I am stuck here. I want to replace all double quotes of a string with its equivalent Unicode value (" with \u0022
).
In C# it is possible. But don't know how to do it in Java.
C# - C# Working snippet
Java -Java Non working snippet
NOTE: In Java I can use \\u0022
. But in this case, its escaping the \
not the double quote.