cp1251

How to convert a string from CP-1251 to UTF-8?

How to convert a string from CP-1251 to UTF-8? Question: I’m using mutagen to convert ID3 tags data from CP-1251/CP-1252 to UTF-8. In Linux there is no problem. But on Windows, calling SetValue() on a wx.TextCtrl produces the error: UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xc3 in position 0: ordinal not in range(128) The original …

Total answers: 6