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

Some Unicode issues... #9

Closed
mtravers opened this issue Jan 8, 2013 · 3 comments
Closed

Some Unicode issues... #9

mtravers opened this issue Jan 8, 2013 · 3 comments

Comments

@mtravers
Copy link

mtravers commented Jan 8, 2013

bash-4.2$ howdoi make a log scale d3
Traceback (most recent call last):
File "/usr/local/bin/howdoi", line 8, in
load_entry_point('howdoi==0.2', 'console_scripts', 'howdoi')()
File "build/bdist.macosx-10.8-intel/egg/howdoi/howdoi.py", line 93, in command_line_runner
File "build/bdist.macosx-10.8-intel/egg/howdoi/howdoi.py", line 81, in howdoi
UnicodeEncodeError: 'ascii' codec can't encode characters in position 195-196: ordinal not in range(128)

I think this is because the source page has a ± character in it.
http://stackoverflow.com/questions/11924335/horizon-chart-not-visible-when-using-d3-scale-log

@gleitz
Copy link
Owner

gleitz commented Jan 8, 2013

Very interesting. This doesn't throw an error on my machine but the ± character is printed incorrectly. What version of Python are you using?

@mtravers
Copy link
Author

mtravers commented Jan 8, 2013

Python 2.7.2 on Mac.

And, I see it only happens when running the shell inside Emacs. From a normal terminal, it prints the correct char plus some extra junk.

Emacs supports Unicode just fine, but I guess the shell connection has some problems, or presents the wrong kind of stream to Python.

@jianli
Copy link
Contributor

jianli commented Jan 9, 2013

This is fixed by #18, at least in my terminal.

@gleitz gleitz closed this as completed in cce550f Jan 11, 2013
gleitz pushed a commit that referenced this issue Apr 14, 2021
# This is the 1st commit message:

move from print_err to logging

# This is the commit message #2:

change sanity check message

# This is the commit message #3:

flake8 linting

# This is the commit message #4:

flake8 linting

# This is the commit message #5:

pylint updates

# This is the commit message #6:

pylint updates

# This is the commit message #7:

pylint updates for errors.py

# This is the commit message #8:

update changes from #344

# This is the commit message #9:

update formatting

# This is the commit message #10:

update formatting

# This is the commit message #11:

add consuructor to class

# This is the commit message #12:

refactor logging levels and messages

# This is the commit message #13:

refactor logging levels and messages

# This is the commit message #14:

pylint recomendations

# This is the commit message #15:

flake8 formating

# This is the commit message #16:

flake8 formating

# This is the commit message #17:

change logging to print
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants