Unescaping Unicode code points in a Java string
- From: "Greg" <greghe@xxxxxxxxxxx>
- Date: 30 Aug 2006 23:51:19 -0700
My Java program reads in (from an external source) text that contains
the same sort of unicode character escape sequences as java source
code. For example, one such string might be:
"En Espa\u00f1ol"
Naturally, I would like to convert the five characters subsequence,
"\u00f1", into the single character codepoint (hex 00F1) that those
characters actually represent:
"En Español"
I've been browsing the J2SE 1.5 docs hoping to find a convenient method
to perform this kind of conversion, but so far have not found one. Does
anyone have any suggestions?
Thanks,
Greg
.
- Follow-Ups:
- Re: Unescaping Unicode code points in a Java string
- From: Oliver Wong
- Re: Unescaping Unicode code points in a Java string
- From: Thomas Fritsch
- Re: Unescaping Unicode code points in a Java string
- Prev by Date: Re: How equals method works in StringBuffer?
- Next by Date: Re: Servlets, send redirect and request scope
- Previous by thread: How equals method works in StringBuffer?
- Next by thread: Re: Unescaping Unicode code points in a Java string
- Index(es):
Relevant Pages
|