今天爱分享给大家带来一个编码为 GBK 的字符串 S,要将其转成 UTF-8 编码的字符串,应如何澡作?【面试题详解】,希望能够帮助到大家。
demo_str = "demo".encode("gbk")
demo=demo_str.decode('gbk').encode('utf-8')
原文链接:https://itblood.website/3848.html,转载请注明出处。

![日不落帝国奇遇记[电脑/17G] [真人SLG/麻豆/动态]](/wp-content/uploads/replace/2025/07/19/0cbf7c31ef655cb2575c09126b310603.webp)