58

iOS让NSLog打印字典显示得更好看(解决中文乱码并显示成JSON格式)

 5 years ago
source link: http://www.cocoachina.com/ios/20181017/25217.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
文章的初衷很简单,是为了能够正常显示打印出字典里面的中文。因为默认情况下,直接打印字典的话,在Xcode控制台上,中文会是乱码的,需要Unicode转码才能看到中文。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK