Am 27.02.2013 09:30, schrieb Bastien:
Andreas Röhler <andreas.roeh...@easy-emacs.de> writes:

When evaluating the source examples attached, it fails sending

Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa9' in position 0: 
ordinal not in range(128)

This is a Python error, not an Org error.

I guess you are using Python 2.x?

The way Python handles encoding changed in Python 3.0.


Forms work from all Python shells

> python
Python 2.7.3 (default, Apr 14 2012, 08:58:41) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print(u'\xA9')
©
>>> quit()
> python3
Python 3.3.0 (default, Oct 01 2012, 09:13:30) [GCC] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> print(u'\xA9')
©
>>> print(u'\u00A9')
©
>>>

AFAIS bug is caused by calling shell-command-on-region




Reply via email to