Re: [dabo-users] Fw: Unicode Encode Error

Author: Paul McNett

Posted: 2012-04-20 at 16:39:25

Okay please try one more thing. See the line above 905 that says:

f = open(fname, "w")

Change to:

f = open(fname, "wb")

Paul

On 4/20/12 2:23 PM, Zdravko Subakov wrote:

> I installed it again tried import dabo, it worked. Tried my Hello World

> trough editor.py it failed.

> ***************

> 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)

> UnicodeEncodeError: 'ascii' codec can't encode character u'\u017d' in

> position 1

> 53: ordinal not in range(128)

> *******************************

> Z.

>

> ----- Original Message -----

> From: "Paul McNett"<p@ulmcnett.com>

> To: "Dabo Users list"<dabo-users@leafe.com>

> Sent: Friday, April 20, 2012 11:08 PM

> Subject: Re: [dabo-users] Fw: Unicode Encode Error

>

>

>> 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: Dabo-users@leafe.com

>> 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/4F91D06A.5020500@ulmcnett.com

>>

>

> _______________________________________________

> Post Messages to: Dabo-users@leafe.com

> 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/6B91BD9985484A1CB309F2B9F5E9B550@Perajoe

_______________________________________________

Post Messages to: Dabo-users@leafe.com

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/4F91D78D.9020807@ulmcnett.com

©2012 Paul McNett