Opening files with korean file names
Hi there, i have a LOT of texture files with korean file names.
The file names show up as(using as an example):
but when displayed with the correct encoding(korean) they show up as:
Now my question is how do i convert the garbled junk into the understandable, readable korean filenames so i can open them in my c++ application?
When i printf the file path i want to open in my app, it outputs:
into the run console(i'm using project builder in Mac OS X)
when i try and open the garbled filename using, for example, fopen, it returns null(not found?) and when i try and fclose() it crashes the app.
also, if i try entering in an absolute korean path manually like this:
I get the warning:
warning: unknown escape sequence: '\354'
and fopen returns null.
If anyone could help me it would be appreciated a lot!
Here's a screenshot of how different apps are outputting my korean file names. Only finder manages to do it correctly: http://www.playrpg.com/storage/Picture%204.jpg
Note: the small textedit window is how it should look before being encoded. the style of text in the finder is how it should look after being translated into korean.
EDIT: to see this post how its meant to be set your browser encoding to korean