Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

escape and unicode encode characters in strings?

  Asked By: Nisha    Date: Mar 11    Category: Java    Views: 924
  

I want escape certain characters in a string, for example changing \
to \\ and newlines to '\n', and unicode encode the characters if
necessary, for example \uXXXX, before saving it to a file. Is there
a built in method in java that does this?

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on escape and unicode encode characters in strings? Or get search suggestion and latest updates.




Tagged: