I\'m searching for a library (Apache / BSD / EPL licensed) to convert native text to ASCII using \\u for characters not available in ASCII (basically what java.util.Properti
Try this piece of code from Apache commons-lang:
StringEscapeUtils.escapeJava("ایران زیبای من"); StringEscapeUtils.unescapeJava("\u0627\u06CC\u0631\u0627\u0646 \u0632\u06CC\u0628\u0627\u06CC \u0645\u0646");