#+BEGIN_SRC python :results output
print(u'\\xA9')
#+END_SRC
#+RESULTS:
: \xA9
AFAUI cause in in calling org-babel--shell-command-on-region, line 108
of ob-eval.el
(process-file shell-file-name input-file
where python is run through a bash.
While in a Emacs python-shell
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)
UnicodeEncodeError-lp-550661-test.org
Description: Lotus
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)
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
Hi Andreas,
Andreas Röhler andreas.roeh...@easy-emacs.de writes:
Forms work from all Python shells
You need to test the form in a regular shell, not a Python shell.
See `org-babel-sh-command'.
AFAIS bug is caused by calling shell-command-on-region
See above, and edebug-defun
Am 27.02.2013 10:12, schrieb Bastien:
Hi Andreas,
Andreas Röhler andreas.roeh...@easy-emacs.de writes:
Forms work from all Python shells
You need to test the form in a regular shell, not a Python shell.
Hi Bastien,
do you mean this:
python -c print(u'\xA9')
©
python -c