If the developer wrote the software correctly it would not make
any assumptions about the encoding and be explicit in choosing an
encoding when going in and out of String instances, etc. It is
generally a bad programming practice to use the default encoding
on any platform.
In this case, we're talking about javac assuming MacRoman for the
source file encoding. That's fine, but it would be nice to be able
to change that system-wide, rather than having to remember to
specify a command-line option each time.
Then that is about the tool you use when creating / modifying the
source file. Set it to use UTF-8 and be done with it. If needed force
javac to use a particular encoding by supplying the -encoding parameter.
Mac OS X had/has to support users coming over from Mac OS. Mac OS
used Mac Roman as its default encoding. That is why the default
encoding was selected to be Mac Roman on Mac OS X.
I don't really buy this argument. Java is Java, after all.
Huh? What does this have to do with Java being Java? Java after all
has the concept of a default encoding and only on a subset of
platforms has it defined to be UTF-8 (Windows doesn't use UTF-8, etc.).
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden