On Wed, 06 Feb 2008 20:30:13 -0000, mte <[EMAIL PROTECTED]> wrote:
> Hi..
> Consider this example: in a regular python shell, typing u"č" ==
> unicode('č', 'utf8') returns true. In tg-admin shell it doesn't, which
> could cause some problems with inserting into Unicode() fields in
> database.
>
> So what I did was to modify turbogears/commands/base.py - in
> raw_input() method of CustomShell I changed "return
> code.InteractiveConsole.raw_input(self, *args, **kw)"
> to "return code.InteractiveConsole.raw_input(self, *args,
> **kw).decode('utf-8')"
A better way would be to decode(sys.stdout.encoding)
Either way, you can get around this now by just using the unicode string
u'\u010d'.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---