Re: Reading files with scandinavian characters in filename on Mac OS X.

David Teran <[email protected]> Tue, 8 Feb 2005 21:43:22 +0100
Newsgroups gmane.comp.web.webobjects.admin
Message-ID <[email protected]>
Hi,

> I don't know anything about the problem with UFS, but you could try to  
> read from HFS+ by using the ERXFile class from Project Wonder. It  
> worked fine for me when I had to read filenames containing different  
> kinds of accentuated characters, German umlauts etc from HFS+ file  
> systems.
> See  
> http://cvs.sourceforge.net/viewcvs.py/wonder/Wonder/Common/ 
> Frameworks/ERExtensions/Sources/er/extensions/ERXFile.java?view=markup

This will also work for other character sets like the ones used for  
norwegian language. I wrote this class (ERXFile) because there is this  
problem with composed and decomposed unicode characters and the HFS+  
filesystem and Mac OS X's Finder.app.

By the way: be aware that if you use ZIP files you -will- have problems  
if you use special characters and multiple filesystems on different  
operating systems. ZIP files do not store information about character  
encoding of the file names and paths which means: if a windows system  
encodes a zipfile have a file with a character 'รค' it uses most  
probably winansi, but if you unzip the file on a macos x machine, the  
app uses most probably macroman and there are characters that are  
different in winansi and macroman, its a very ugly area...

regards, David