Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Unicode in filenames = problem

Unicode in filenames = problem
Thread Tools
Forum Regular
Join Date: May 2001
Location: Mnt View, CA
Status: Offline
Reply With Quote
Jun 30, 2001, 11:28 PM
 
One thing that has been causing problems for me when coding for OS X is how filenames are stored - that is when containing Unicode characters.

For some reason Apple decided to use something they call canonical utf-8 for the filesystem - basically: "all decomposable characters are decomposed".

I know how to deal with this in Cocoa (can use NSString's fileSystemRepresentation method). But everywhere else I have endless problems. I am trying to write a simple C command line utility.

Apple says that have some file-system representation API for Carbon and Core Foundation as well but I have not found any documentation on this.

Anyone know how to map from Canonical-utf-8 to normal utf-8 in C?

Thanks

For more info:
File Encodings and Fonts
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:43 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2