티스토리 뷰

공부

[Java] StringEscapeUtils.escapeJava(str);

승가비 2022. 1. 14. 06:37
728x90

https://stackoverflow.com/questions/20414804/java-backslash-encode-special-characters-like-quote-tab-newline-backslash-to

 

Java backslash encode special characters like quote, tab, newline, backslash to make parseable

I'm writing Java that gets strings like "C:\Temp\file.txt" and generates C source code containing those strings, the code will be compiled later. So I need to render the strings in a form that can...

stackoverflow.com

 

728x90
댓글