Converting from utf-16 to utf-8 in Python 3
问题 I'm programming in Python 3 and I'm having a small problem which I can't find any reference to it on the net. As far as I understand the default string in is utf-16, but I must work with utf-8, I can't find the command that will convert from the default one to utf-8. I'd appreciate your help very much. 回答1: In Python 3 there are two different datatypes important when you are working with string manipulation. First there is the string class, an object that represents unicode code points.