On 4/20/12 1:19 PM, Zdravko Subakov wrote:
> If I got it correctly I should
> add this line
> from dabo.lib.utils import ustr

To close to the top of the file, yes.

> and comment out first(with minus) and add the second one (with plus)
> txt = ed.Text
> txt = ustr(ed.Text)

Yes, that should work. See below though.

>
> If that is what you wanted to try out it still does not work, here is the
> error:
> ***********************
> C:\dabo\ide>python editor.py
> Traceback (most recent call last):
>    File
> "C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\dabo\ui\uiwx\dMenuIte
> m.py", line 58, in __onWxHit
>      self.raiseEvent(dEvents.Hit, evt)
>    File
> "C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\dabo\ui\uiwx\dPemMixi
> n.py", line 1045, in raiseEvent
>      super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args,
> **kwargs)
>    File
> "C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\dabo\lib\eventMixin.p
> y", line 81, in raiseEvent
>      bindingFunction(event)
>    File "editor.py", line 905, in onRunScript
>      f.write(txt)

It is still running the old code. Otherwise the above line would show the 
ustr() 
call. If you "installed" dabo with setup.py from this source you are editing 
you'll 
need to install it again.

> UnicodeEncodeError: 'ascii' codec can't encode character u'\u017d' in
> position 1
> 53: ordinal not in range(128)
> *****************************
>

Paul
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to