[Pythonmac-SIG] utf-8 using python 2.6.1 (os x 10.6.4)
Ned Deily
nad at acm.org
Mon Dec 13 20:23:41 CET 2010
In article <p06020402c92c14625652@[192.168.1.13]>,
Jym Feat <jf at ai.univ-paris8.fr> wrote:
> I'm having issues when using python 2.6.1 in interactive mode : it wouldn't
> let me type anything but plain ascii... while the terminal itself will
> properly display french accented characters as entered on the fly;
>
> so I looked into site.py, found that silly instruction was still there on
> line 456, changed it, to utf-8, but still no go...
>
> hunting for a solution on the web, I learned about PYTHONIOENCODING and set
> it to utf-8 in my environment: still no accented french chars...
>
> then I checked the 'escape non ascii' option in the terminal settings: now I
> can type words like Noël or Pâques, but there are still some oddities, like
> the ¦ ligature for instance, that display as ?^?^?
>
> has anybody solved that issue?
Without looking at it more closely, my guess would be an issue (or
difference) between the Apple-supplied editline library which Apple uses
as a substitute for the GNU readline library in the system-supplied
Python 2.6.1 in OS X 10.6. If you have the time, please try using the
python.org 32-bit-only python 2.7.1 installer which is linked with GNU
readline and then the python.org 64-bit python 2.7.1 which is currently
linked with editline. If the problem is duplicated there, please open
an issue on the python bug tracker (bugs.python.org).
--
Ned Deily,
nad at acm.org
More information about the Pythonmac-SIG
mailing list