Patrick Totzke wrote on 2011-07-13 05:22:
> Hi!
> I just wanted to check: Can I be sure that urwid.Edit().get_text()
> returns utf-8 encoded strings?
> Do I have to lookup the locale and recode myself or is thare a way to
> make urwid do this
> for me? As I understand it, urwid is locale-concious anyway is it?
> thanks,

Hi Patrick,

It actually depends on the type of the caption.

Edit(u'username:')  # will decode input to unicode
Edit('username:')  # will leave input in original encoding

Ian

_______________________________________________
Urwid mailing list
[email protected]
http://lists.excess.org/mailman/listinfo/urwid

Reply via email to