且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Python 3.5中编码utf-8和utf8之间的区别

更新时间:2023-11-27 10:20:58

没有区别。请参见标准编码表。专门针对'utf_8',以下都是有效的别名:

There's no difference. See the table of standard encodings. Specifically for 'utf_8', the following are all valid aliases:

'U8', 'UTF', 'utf8'

也请注意第一段中的声明:

Also note the statement in the first paragraph:


请注意,仅大小写不同或使用连字符代替下划线的拼写替代也是有效的别名;因此,例如'utf-8''utf_8'编解码器