这些文本的编码类型是什么? [英] What encoding type of these text?

查看:113
本文介绍了这些文本的编码类型是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我用泰语搜索Google时。 Google会转换这些。
%E0%B8%A0%E0%B8%B2%E0%B8%A9%E0%B8%B2%E0%B9%84%E0%B8%97%E0%B8%A2

When I search in Google by Thai language. Google will convert like these. %E0%B8%A0%E0%B8%B2%E0%B8%A9%E0%B8%B2%E0%B9%84%E0%B8%97%E0%B8%A2

推荐答案

网址编码:请参阅 http://www.w3schools.com/tags/ref_urlencode.asp


这是一种网址编码,所有
非字母数字字符,除了
-_。替换为百分比(%)
符号后跟两个十六进制数字和
编码为加号(+)的空格。它
的编码方式与
从WWW表单发布的数据是
编码的方式相同,这与
中的方式相同application / x-www-form-urlencoded
媒体类型。

It's a URL encoding in which all non-alphanumeric characters except -_. are replaced with a percent (%) sign followed by two hex digits and spaces encoded as plus (+) signs. It is encoded the same way that the posted data from a WWW form is encoded, that is the same way as in application/x-www-form-urlencoded media type.

(信息复制自 http://php.net/manual/en/function.urlencode.php

这篇关于这些文本的编码类型是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆