emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] BUG copyright sign


From: Andreas Röhler
Subject: Re: [O] BUG copyright sign
Date: Wed, 27 Feb 2013 09:53:06 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130105 Thunderbird/17.0.2

Am 27.02.2013 09:30, schrieb Bastien:
Andreas Röhler <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]