Bonjour,
J'ai de sérieux soucis d'accents avec wxPython 2.5.2.7 quand les accents sont directement dans les fichier Python (quand ceux-ci se trouvent dans mes fichiers XRC je n'ai aucun soucis).
Quand je fait ceci sous XP, cela fonctionne parfaitement :
self.id_label.SetLabel('éè')
Mais sous Win2000, j'ai cette erreur :
File "C:\PYTHON23\Lib\site-packages\wx\_core.py", line 8406, in SetLabel
return _core_.Control_SetLabel(*args, **kwargs)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 0: ordinal not in range(128)
Je ne comprend pas pourquoi ça fonctionne sous XP (…)
Forum Programmation.python problèmes d'accents avec wxPython
30
août
2004