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: Umlauts in file / path names




On Sep 30, 2004, at 4:48 PM, Daniel Mischler wrote:

Hello

I hope this hasn't been covered too often but I couldn't find it in the digests and the docu :-)

How can I handle file names and path names with Java (Cocoa) that contain umlauts?

I need to work with all mounted volumes and it shouldn't choke on special characters.

So far I just get 'a?' instead 'รค' if I use it from e.g. new File("/Volumes").listFiles();.

It looks like you're getting back a filename string in UTF-8, which is the encoding for filenames on Mac OS X. Have you tried to create a FileInputStream and open the file with the name you are concerned about? It should be fine.

Scott

<x-tad-smaller>------------------
</x-tad-smaller><x-tad-smaller>Scott Kovatch</x-tad-smaller><x-tad-smaller>
Apple Computer
Java Runtime Classes
Cleveland Hts, OH
email@hidden

</x-tad-smaller>We want your bug reports - submit them at <http://bugreport.apple.com>

 _______________________________________________
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: 
 >Umlauts in file / path names (From: Daniel Mischler <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.