[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
python-mode, c-c c-c and unicode in output buffer
From: |
sandro dentella |
Subject: |
python-mode, c-c c-c and unicode in output buffer |
Date: |
Sat, 24 Oct 2009 06:56:27 -0700 (PDT) |
User-agent: |
G2/1.0 |
Hi,
this simple python code: print u'è' works outside emacs but raises
error inside emacs:
sandro@bluff:~$ cat /tmp/u.py
# coding: utf-8
print u'è'
sandro@bluff:~$ python /tmp/u.py
è
So I ask here, instead of asking in a python group...
the buffer(s) are all utf-8 encoded. the error that python raises
trying to write to the buffer is:
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in
position 0: ordinal not in range(128)
It seems python believes it needs to encode in ascii, but emacs
output buffer has the 'u' in the left lower corner...
Thanks in advance
sandro
*:-)
- python-mode, c-c c-c and unicode in output buffer,
sandro dentella <=