-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
http://www.1688.com/
keyconfigを使い、右クリックして選択した文字を阿里巴巴というサイトで検索すると文字化けしてしますのですが、どのようにソースを書いたらよいでしょうか?
chrome のエクステンションのkeyconfig を使用しています。
ソースはこのようにかいています。
javascript:var selectStr = document.getSelection();var encStr = encodeURIComponent(selectStr);window.open('ttp://s.1688.com/selloffer/offer_search.htm?keywords='+encStr);
(URLのはじめのhを省略しています)
中国のサイトなので、gbkという文字コードを使用しているため文字化けしているもようです。
ちなみに英語で検索するとうまく検索されるようです。
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels