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: Why did Java change Japanese native encoding in Leopard? (Radar #5015600)




On 29-Feb-08, at 02:18 , Pratik Solanki wrote:

On Feb 28, 2008, at 4:56 PM, Michael Good wrote:

Hi Pratik,

Thanks again for your suggestion of using  -Dfile.encoding=Shift_JIS
when we start Java via JNI Invocation. Our initial testing indicates
that this does indeed fix the problem. I am still hoping that this
system property is indeed documented somewhere that I have missed.

I looked at the javadoc for System.getProperties() <http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#getProperties() > expecting to find it there but didn't. So, as Adrian points out this is not a mandated property. However, I think it is quite safe to use it. The property has been around for a long time and I think its become more like a de-facto standard. Certainly on Mac OSX, all versions of java honour it.

I have used this property on Windows and Linux too. This has even helped me out in certain cases with eclipse.


Given the this has become a de-facto standard as Michael points out, maybe it about time Sun updated their documentation. I have opened a bug at Sun recommending that this should be documented.

Andre
_______________________________________________
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: 
 >Why did Java change Japanese native encoding in Leopard? (Radar #5015600) (From: "Michael Good" <email@hidden>)
 >Re: Why did Java change Japanese native encoding in Leopard? (Radar #5015600) (From: Pratik Solanki <email@hidden>)
 >Re: Why did Java change Japanese native encoding in Leopard? (Radar #5015600) (From: "Michael Good" <email@hidden>)
 >Re: Why did Java change Japanese native encoding in Leopard? (Radar #5015600) (From: "Michael Good" <email@hidden>)
 >Re: Why did Java change Japanese native encoding in Leopard? (Radar #5015600) (From: Pratik Solanki <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.