开发者

iphone sdk: drawing weird characters using custom fonts

开发者 https://www.devze.com 2023-02-06 19:01 出处:网络
I\'m drawing custom fonts in a view but I\'m having trouble to set correctly the map of characters. The thing is that I\'m unable to draw some of the characters such as \"ü\", \"ä\", \"á\"... appar

I'm drawing custom fonts in a view but I'm having trouble to set correctly the map of characters. The thing is that I'm unable to draw some of the characters such as "ü", "ä", "á"... apparently because of differences between the encoding formats.

To make this simple I would want to know how I can store in a NSString a character corresponding to a position such as 0x00C9, 0x00D1 and so on. 开发者_开发问答Any idea?


Have you tried [NSString stringWithUTF8String: ] ?

0

精彩评论

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