Muß ich Texte erst encoden?UnicodeDecodeError: 'ascii' codec can't decode byte 0xfc in position 7: ordinal not in range(128)
Folgende coding kommentare schon probiert:
- # -*- coding: ISO-8859-1 -*-
# -*- coding: utf-8 -*-
# -*- coding: latin-1 -*-
Muß ich Texte erst encoden?UnicodeDecodeError: 'ascii' codec can't decode byte 0xfc in position 7: ordinal not in range(128)
Code: Alles auswählen
text = unicode(text, sys.getfilesystemencoding())
Code: Alles auswählen
import locale
print locale.getdefaultlocale()
('de_DE', 'cp1252')
Code: Alles auswählen
import wx
app = wx.PySimpleApp()
msg = wx.MessageBox(u"öäüÖÄÜß", u"Unsere geliebten Umlaute")
Code: Alles auswählen
# -*- coding: latin-1 -*-
import wx
app = wx.PySimpleApp()
msg = wx.MessageBox(u"öäüÖÄÜß", u"Unsere geliebten Umlaute")