From: Flavio C. <fcc...@gm...> - 2006-08-06 17:24:42
|
Hi, apparently vpython 3.2.9 doesn't accept unicode strings in labels. It does, however accept the latin-1(iso-8859-1) encoding without problems: In [3]: a=3Dvisual.label(text=3D's=E3o') In [4]: a.text=3Dunicode('s=E3o','latin-1') --------------------------------------------------------------------------- Boost.Python.ArgumentError Traceback (most recent call last) /home/fccoelho/<console> ArgumentError: Python argument types in None.None(label, unicode) did not match C++ signature: None(visual::Label {lvalue}, std::string) In [5]: unicode('s=E3o','latin-1') Out[5]: u's\xe3o' In [6]: print unicode('s=E3o','latin-1') s=E3o I need to put unicode strings into labels, is there any way of doing this? Will the next release of vpython handle Unicode? thanks, --=20 Fl=E1vio Code=E7o Coelho registered Linux user # 386432 --------------------------- "Laws are like sausages. It's better not to see them being made." Otto von Bismark |