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: filename conversion issue



On Wed, 20 Jul 2005, Bjorn Roche wrote:

On Tue, 19 Jul 2005, Bjorn Roche wrote:


<snip>

For my code, I resorted to creating a temporary file with benign, ASCII-only name and moving it using java after the conversion is done. Although this requires a bit more cleanup code in the event that the user cancels or the operation failes, at least it works. Might this still fail in a non-ASCII local -- e.g. japan?

One more quick note is that the temporary file's path probably has to be all ASCII too, so I used Java's File.createTempFile( String, String ) function which gives me a file in /tmp. Java doesn't guarantee that it's all ASCII AFAIK, but it seems to be highly improbable that it would use anything else, so I'm going with that. The trouble then is that moving it to where I want it may take a long time (/tmp is not always on the target volume, after all).


Anyway, it works which is the most imporant thing, but I'd really love a a better solution if someone has one.

	bjorn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/email@hidden

This email sent to email@hidden
References: 
 >filename conversion issue (From: Bjorn Roche <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.