Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting system-wide encoding?




On Dec 7, 2006, at 4:19 PM, Rick Mann wrote:


On Dec 7, 2006, at 16:16 , Shawn Erickson wrote:

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

This email sent to email@hidden
References: 
 >Setting system-wide encoding? (From: Rick Mann <email@hidden>)
 >Re: Setting system-wide encoding? (From: Michael Hall <email@hidden>)
 >Re: Setting system-wide encoding? (From: Rick Mann <email@hidden>)
 >Re: Setting system-wide encoding? (From: Shawn Erickson <email@hidden>)
 >Re: Setting system-wide encoding? (From: Rick Mann <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.