Skip to content

修复Sublime Plugin,URL中文编码问题 #43

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

Merged
merged 1 commit into from
Dec 20, 2017

Conversation

kenhancoder
Copy link

当search中文时,出现UnicodeEncodeError
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 818, in run_
return self.run(edit)
File "/Users/username/Library/Application Support/Sublime Text 3/Packages/Codelf/Mdnsearch.py", line 40, in run
SearchFor(text)
File "/Users/username/Library/Application Support/Sublime Text 3/Packages/Codelf/Mdnsearch.py", line 13, in SearchFor
webbrowser.open_new_tab(url)
File "./python3.3/webbrowser.py", line 70, in open_new_tab
File "./python3.3/webbrowser.py", line 62, in open
File "./python3.3/webbrowser.py", line 635, in open
UnicodeEncodeError: 'ascii' codec can't encode characters in position 46-54: ordinal not in range(128)

@kenhancoder kenhancoder changed the title 修复URL中文编码问题 修复Sublime Plugin,URL中文编码问题 Dec 20, 2017
@unbug unbug merged commit 0f03f4c into unbug:Sublime Dec 20, 2017
@unbug
Copy link
Owner

unbug commented Dec 20, 2017

Thanks 👍

@kenhancoder kenhancoder deleted the Sublime branch December 25, 2017 07:27
@kenhancoder kenhancoder restored the Sublime branch December 25, 2017 07:28
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

Successfully merging this pull request may close these issues.

2 participants