Convert Chinese characters into UTF8 encoded URLENCODE

xiaoxiao2021-03-06  25

Google Search Forms receive UTF8 encoded data, if you enter http://www.google.com/search?hl=zh-cn&q=griefforyou on the address bar, the latter will become garbled

The correct way is to convert Chinese characters into UTF8 encoded URL ENCODE code such as http: //www.google.com/search? HL = zh-CN & q = Griefforyou% E7% 9A% 84% E7% A8% 8B% E5% BA% 8F% E4% BA% BA% E7% 94% 9F

The following is the demo I wrote:

转载请注明原文地址:https://www.9cbs.com/read-40325.html

New Post(0)