Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unicode exception when evaluating expression with non-ascii characters #1722

Closed
jstenar opened this issue May 10, 2012 · 3 comments
Closed

Comments

@jstenar
Copy link
Member

jstenar commented May 10, 2012

When evaluating an expression at the prompt with non-ascii characters I get an exception using commit e881f31, windows7, python 2.7

Example:

In [2]: print u"åäö"
Traceback (most recent call last):
  File "C:\python27\Lib\logging\__init__.py", line 842, in emit
    msg = self.format(record)
  File "C:\python27\Lib\logging\__init__.py", line 719, in format
    return fmt.format(record)
  File "C:\python27\Lib\logging\__init__.py", line 467, in format
    s = self._fmt % record.__dict__
UnicodeDecodeError: 'ascii' codec can't decode byte 0x86 in position 18: ordinal not in range(128)
Logged from file logger.py, line 74
åäö
@takluyver
Copy link
Member

Can you do %debug and see where the relevant call into logging is? Thanks.

@jstenar
Copy link
Member Author

jstenar commented May 10, 2012

unfortunately it doesn't help

In [2]: %debug
ERROR: No traceback has been produced, nothing to debug.

@jstenar
Copy link
Member Author

jstenar commented May 10, 2012

I found the problem. It is not ipython related but a debug logger in pyreadline that I had active.

@jstenar jstenar closed this as completed May 10, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants