Unicode Error when changing any name

Help
totti
2010-07-04
2013-05-01
  • totti

    totti - 2010-07-04

    Hi,
    I'm new in this.
    I have made a new app in wxpython using boa v0.61.
    When I try to change any name using the Frame Designer I got the following error:

    12:11:47: Traceback (most recent call last):
    12:11:47:   File "C:\Python26\Lib\site-packages\boa-constructor\Inspector.py", line 823, in OnSelect     self.inspector.propertySelected(self)
    12:11:47:   File "C:\Python26\Lib\site-packages\boa-constructor\Inspector.py", line 1086, in propertySelected     self.prevSel.hideEditor()
    12:11:47:   File "C:\Python26\Lib\site-packages\boa-constructor\Inspector.py", line 803, in hideEditor     self.propEditor.inspectorPost()
    12:11:47:   File "C:\Python26\Lib\site-packages\boa-constructor\PropEdit\PropertyEditors.py", line 158, in inspectorPost     v = self.getValue()
    12:11:47:   File "C:\Python26\Lib\site-packages\boa-constructor\PropEdit\PropertyEditors.py", line 1524, in getValue     if c not in self.identifier:
    12:11:47: UnicodeDecodeError: 'ascii' codec can't decode byte 0x83 in position 52: ordinal not in range(128)

    I'm stock here and I don't know how to continue.
    Thank you in advance for any help.

     
  • Barton Cline

    Barton Cline - 2010-07-05

    It will be a great help to know your wx version:

    >>> from wx import version
    >>> print version()
    2.8.10.1 (msw-unicode)
    >>>

     
  • Riaan Booysen

    Riaan Booysen - 2010-07-06

    Hi,

    If you want to use unicode in Boa, you need to use the unicode version of wxPython and set a default encoding for Boa to use.
    (from the error I can see your current default encoding is ascii)

    The easiest way to set a default encoding (e.g. utf-8) in Boa is to run it like this:
    python Boa.py -U utf-8

    Cheers,
    Riaan.

     
  • totti

    totti - 2010-07-07

    I haven't found the problem but the solution is to initiating clicking on Boa.pyc instead of initiating the Boa.py file from Python.
    Thank you for your support.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks