Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #7997
| Date | 2011-09-13 20:17 -0400 |
|---|---|
| From | Arne Vajhøj <arne@vajhoej.dk> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: unicode |
| References | (1 earlier) <nfss679ije8c4r70tn9kmnr055vm6nfua0@4ax.com> <4e6e7a2a$0$309$14726298@news.sunsite.dk> <j4m4rs$l5g$1@dont-email.me> <4e6eaa8a$0$305$14726298@news.sunsite.dk> <j4mgeo$h1c$2@dont-email.me> |
| Message-ID | <4e6ff2a9$0$313$14726298@news.sunsite.dk> (permalink) |
| Organization | SunSITE.dk - Supporting Open source |
On 9/12/2011 10:51 PM, markspace wrote:
> On 9/12/2011 5:57 PM, Arne Vajhøj wrote:
>> I can not think of a better way to solve the problem that this
>> construct solves.
>
> Which problem is that? Because I honestly can think of a single use case
> for it.
To quote the JLS:
<quote>
The Java programming language specifies a standard way of transforming a
program written in Unicode into ASCII that changes a program into a form
that can be processed by ASCII-based tools. The transformation involves
converting any Unicode escapes in the source text of the program to
ASCII by adding an extra u-for example, \uxxxx becomes \uuxxxx-while
simultaneously converting non-ASCII characters in the source text to
Unicode escapes containing a single u each.
This transformed version is equally acceptable to a compiler for the
Java programming language ("Java compiler") and represents the exact
same program. The exact Unicode source can later be restored from this
ASCII form by converting each escape sequence where multiple u's are
present to a sequence of Unicode characters with one fewer u, while
simultaneously converting each escape sequence with a single u to the
corresponding single Unicode character.
</quote>
It allow you to use any unicode in names and strings with tools
that does not support those characters.
Arne
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
unicode bob <bob@coolgroups.com> - 2011-09-12 12:24 -0700
Re: unicode Knute Johnson <nospam@knutejohnson.com> - 2011-09-12 14:04 -0700
Re: unicode Roedy Green <see_website@mindprod.com.invalid> - 2011-09-12 14:08 -0700
Re: unicode Arne Vajhøj <arne@vajhoej.dk> - 2011-09-12 17:31 -0400
Re: unicode markspace <-@.> - 2011-09-12 16:33 -0700
Re: unicode Lew <lewbloch@gmail.com> - 2011-09-12 17:46 -0700
Re: unicode markspace <-@.> - 2011-09-12 20:16 -0700
Re: unicode Roedy Green <see_website@mindprod.com.invalid> - 2011-09-12 22:05 -0700
Re: unicode Roedy Green <see_website@mindprod.com.invalid> - 2011-09-12 22:10 -0700
Re: unicode Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-09-13 07:18 +0000
Re: unicode Arne Vajhøj <arne@vajhoej.dk> - 2011-09-12 20:57 -0400
Re: unicode markspace <-@.> - 2011-09-12 19:51 -0700
Re: unicode Arne Vajhøj <arne@vajhoej.dk> - 2011-09-13 20:17 -0400
Re: unicode markspace <-@.> - 2011-09-13 19:32 -0700
Re: unicode Roedy Green <see_website@mindprod.com.invalid> - 2011-09-14 11:49 -0700
Re: unicode Paul Cager <paul.cager@googlemail.com> - 2011-09-13 04:05 -0700
Re: unicode Roedy Green <see_website@mindprod.com.invalid> - 2011-09-12 22:02 -0700
Re: unicode Arne Vajhøj <arne@vajhoej.dk> - 2011-09-13 20:30 -0400
Re: unicode Arne Vajhøj <arne@vajhoej.dk> - 2011-09-12 17:29 -0400
Re: unicode Lew <lewbloch@gmail.com> - 2011-09-12 15:48 -0700
csiph-web