Re: [Q] How can I repair file name with wrong encoding?
Re: [Q] How can I repair file name with wrong encoding?
- Subject: Re: [Q] How can I repair file name with wrong encoding?
- From: "Kyle Sluder" <email@hidden>
- Date: Thu, 13 Mar 2008 01:10:15 -0400
On Thu, Mar 13, 2008 at 12:40 AM, "S.J.Chun" <email@hidden> wrote:
> For example, a file in zip archive from Windows(Korean), the file name
> will have CP949 encoding. If I unzip this file the file name looks weird as
> you already expected. How can I repair the name of file?
Are you looking to do this in code? You can use the NSString encoding
options to convert the CP949 string into a UTF-8 string, and then
rename the file using NSWorkspace.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden