[PyCrust] Re: AW: Great PyCrust and Great Unicode
Brought to you by:
pobrien
|
From: <po...@or...> - 2003-03-19 20:56:20
|
"Massa, Harald" <har...@su...> writes:
> > With Unicode there is a bug in pycrust: I type the following letters......
>
> >> If I find a fix, I will pass it to you.
> >That would be great. I don't fully understand these international issues.
>
> I found a fix. It works, but I don't feel very well about it.
>
> It is fixable by replacing
>
> command = str(command) # In case the command is unicode.
>
> with
>
> try:
> command = str(command) # In case the command is unicode, which fails.
> except UnicodeError:
> command =command.encode("UTF-8")
>
> that has to be done in interpreter.py and introspect.py
>
> I have now idea how this will behave with other languages, especially
> languages using UTF-16 or sth.
Me either. Anyone?
--
Patrick K. O'Brien
Orbtech http://www.orbtech.com/web/pobrien
-----------------------------------------------
"Your source for Python programming expertise."
-----------------------------------------------
|