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

UnicodeEncodeError #1

Open
bhishanpdl opened this issue Jun 4, 2020 · 0 comments
Open

UnicodeEncodeError #1

bhishanpdl opened this issue Jun 4, 2020 · 0 comments

Comments

@bhishanpdl
Copy link

This seems to be a useful workflow to read hackernews in our own Alfred.
However, there seems to be a little issue here.

There is encoding issue with this app.

The debug log is given below:

[20:07:35.404] ERROR: hacker-news[Script Filter] Code 1: 20:07:35 workflow.py:2249 DEBUG    ---------- hacker-news ----------
20:07:35 workflow.py:1884 DEBUG    loading cached data: /Users/poudel/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.github.wangshub/posts.cpickle
20:07:35 workflow.py:2266 ERROR    'ascii' codec can't encode character u'\u2032' in position 31: ordinal not in range(128)
Traceback (most recent call last):
  File "/Users/poudel/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.C10A30F3-223A-4F50-8073-E66598B27204/workflow/workflow.py", line 2259, in run
    func(self)
  File "hn.py", line 55, in main
    url=post['url']
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2032' in position 31: ordinal not in range(128)
20:07:35 workflow.py:2289 DEBUG    ---------- finished in 0.009s ----------

Have anyone faced a similar issue?

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

1 participant