GCJ and Sun going GPL (again)

Chris Burdess dog@bluezoo.org
Tue Dec 5 18:35:00 GMT 2006


fernando@lozano.eti.br wrote:
> 1. International keyboard layouts won't work with Linux. I have to choose between typing {. <. \ and
> other symbols required for Java programas or accented characters like �. �. � that I need in
> comments and strings.

Do you mean in source code? If so, it's not safe to use non-ASCII
characters in Java source files, they should always be unicode-escaped,
e.g. "\u00e0". This has always been the case. I agree that it's stupid,
and that there should be some kind of encoding declaration for source
files (or perhaps just say that they must all be UTF-8), but you can't
really fault the Java compiler for this since as soon as you tried to
compile on a system with a different locale set your strings would
break.
-- 
Chris Burdess


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /