Skip to content

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

Merged
unbug merged 1 commit into
unbug:Sublimefrom
kh0x00:Sublime
Dec 20, 2017
Merged

修复Sublime Plugin,URL中文编码问题#43
unbug merged 1 commit into
unbug:Sublimefrom
kh0x00:Sublime

Conversation

@kh0x00

@kh0x00 kh0x00 commented Dec 20, 2017

Copy link
Copy Markdown

当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)

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

unbug commented Dec 20, 2017

Copy link
Copy Markdown
Owner

Thanks 👍

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