Re: [dabo-users] Unicode Encode Error

Author: Ed Leafe

Posted: 2012-04-18 at 09:58:14

On Apr 18, 2012, at 9:28 AM, Zdravko Subakov wrote:

> I am strugling with unicode strings.

>

> It is the modified version of PyCon Hello World simple form, but as soon as I introduced unicode characters in strings Dabo (Python) always get stuck and in cmd window I can see Unicode Encode Error: 'ascii' codec can't encode chracter u'\u017d' in position 154: ordinal not in range(128)

> here is the code

Your code ran without error on my system. In fact, if I remove the encode call and just use:

tekst = "Pozdrav Ž"

...it works fine, too. Maybe you have the ANSI version of wxPython installed? Can you run any Dabo app, and select the Help/About menu, copy the system information, and then paste it into your reply?

-- Ed Leafe

_______________________________________________

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/11C78259-D4AB-4C98-A326-D76BD84FE827@leafe.com

©2012 Ed Leafe