你想表达的是字符编解码吧,看名字就知道了。从本地8位,是根据系统字符编码~
QTextCodec *QTextCodec::codecForLocale()和fromlocal8位相互转换~前者定义如下:
On Windows, the codec will be based on a system locale. On Unix systems, the codec will might fall back to using the iconv library if no builtin codec for the locale can be found.
Note that in these cases the codec's name will be "System".
实在不懂 百度 ”Native编码“ 就懂了