all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* python-mode, c-c c-c and unicode in output buffer
@ 2009-10-24 13:56 sandro dentella
  2009-10-24 15:26 ` LanX
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: sandro dentella @ 2009-10-24 13:56 UTC (permalink / raw)
  To: help-gnu-emacs

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
*:-)




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-11-01 19:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-24 13:56 python-mode, c-c c-c and unicode in output buffer sandro dentella
2009-10-24 15:26 ` LanX
2009-10-24 17:33   ` sandro dentella
2009-10-24 15:33 ` Peter Dyballa
     [not found] ` <mailman.9411.1256398409.2239.help-gnu-emacs@gnu.org>
2009-10-24 17:39   ` sandro dentella
2009-11-01 19:27     ` Dave Love
2009-11-01 19:24   ` Dave Love

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.