Unicode characters don't display properly in NSLog output

前端 未结 1 1849
有刺的猬
有刺的猬 2020-12-10 23:27

I want to program my own Eng-Rus dictionary with personalised entries. Studying the topic I wrote this method (in the purpose of learning) - and I cannot output the NSMutabl

相关标签:
1条回答
  • 2020-12-10 23:39

    NSLog uses the description method for printing an NSDictionary (or NSArray), and that prints all non-ASCII characters in the \Unnnn escaped form.

    NSLog and description should only be used for debugging output, so this no problem at all. All keys and values are stored correctly.

    0 讨论(0)
提交回复
热议问题