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

ご質問 中国語サイトの検索について #8

Open
ka2013 opened this issue Dec 23, 2013 · 1 comment
Open

ご質問 中国語サイトの検索について #8

ka2013 opened this issue Dec 23, 2013 · 1 comment

Comments

@ka2013
Copy link

ka2013 commented Dec 23, 2013

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という文字コードを使用しているため文字化けしているもようです。
ちなみに英語で検索するとうまく検索されるようです。

@ka2013
Copy link
Author

ka2013 commented Dec 25, 2013

どなたかしりませんか?

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