开发者

iOS, Xcode - working with international file names in code

开发者 https://www.devze.com 2022-12-22 03:18 出处:网络
I\'m using Objective-C and Cocoa Touch framework. I have few image files in my iPhone application. Some file names are in English and some are in Japanese like \"ココ奈ごろにゃんIcon.png\"开发者_开发

I'm using Objective-C and Cocoa Touch framework.

I have few image files in my iPhone application. Some file names are in English and some are in Japanese like "ココ奈ごろにゃんIcon.png"开发者_开发问答.

I'm creating views programatically and not using IB.

My code is not able to read files with name in Japanese language. How can I get this work done?


You should change your source code's encoding to Unicode (UTF-8) or Unicode (UTF-16).

File Inspector -> Text Settings -> Text Encoding

iOS, Xcode - working with international file names in code

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号