请问这是什么字符“'%C2%A0'”?

WBOY
Release: 2016-06-06 20:34:55
Original
7266 people have browsed it

今天“读取文本文件”的时候,发现的,占两个字符的空白文字,并非空格。用urlencode这个函数发现的。
这个是什么字符?为什么会有这样的字符出现呢?

回复内容:

今天“读取文本文件”的时候,发现的,占两个字符的空白文字,并非空格。用urlencode这个函数发现的。
这个是什么字符?为什么会有这样的字符出现呢?

文档:http://php.net/manual/zh/function.urlencode.php
此函数便于将字符串编码并将其用于 URL 的请求部分

我用JavaScript测试,空白文字似乎是一个字符

请问这是什么字符“'%C2%A0'”?

算是找到了%C2%A0是谁了http://en.wikipedia.org/wiki/Non-breaking_space
中文的说法是这货&nbsp
http://www.cnblogs.com/qdwang/archive/2012/06/18/2553635.html

请问这是什么字符“'%C2%A0'”?

至于为什么会出现这样的情况,是不是因为富文本编辑器本身就对空白做了处理的。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!