开发者

URL charset encoding google vs yahoo

开发者 https://www.devze.com 2023-01-06 19:56 出处:网络
What\'s the best way to manage i18n urls? It开发者_开发知识库\'s strange because google and facebook encode utf8

What's the best way to manage i18n urls? It开发者_开发知识库's strange because google and facebook encode utf8 ex. search ★。SмAck%2BтнAт。★ on google

while yahoo doesn't do it. ex. search ★。SмAck%2BтнAт。★ on yahoo

How do u manage utf8 urls and which libs do u use?

-- edit I tried on Firefox and the behavior is the same, so the question is: Do you have the urls in UTF8 (/pagina/bigné.html) or do u traslitterate them in ASCII (/pagina/bign&egrave.html)? why and how?


with URI::Escape?

http://www.ruby-doc.org/stdlib/libdoc/uri/rdoc/classes/URI/Escape.html

0

精彩评论

暂无评论...
验证码 换一张
取 消