|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.aitools.aq.util.ToAsciiEncoder
public class ToAsciiEncoder
A helper class to convert Unicode strings to ASCII.
Constructor Summary | |
---|---|
ToAsciiEncoder()
|
Method Summary | |
---|---|
static java.lang.String |
encode(java.lang.String unicode)
Converts a Unicode string into an equivalent ASCII representation by replacing each Unicode character with its Unicode code point. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ToAsciiEncoder()
Method Detail |
---|
public static final java.lang.String encode(java.lang.String unicode)
Example:
String unicode = "·¹¼¬…æſðł€ŧ";
String ascii = ToAsciiEncoder.encode(unicode);
System.out.println(ascii);
$ ·¹¼¬…æſðł€ŧ
unicode
- a string that may contain Unicode character
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |