码迷,mamicode.com
首页 > 编程语言 > 详细

javascript中的encode

时间:2015-10-21 15:38:51      阅读:224      评论:0      收藏:0      [点我收藏+]

标签:

Non-standard implementations[edit]

There exists a non-standard encoding for Unicode characters: %uxxxx, where xxxx is a UTF-16 code unit represented as four hexadecimal digits. This behavior is not specified by any RFC and has been rejected by the W3C. The third edition of ECMA-262 still includes an escape function that uses this syntax, but also encodeURI andencodeURIComponent functions. These latter functions apply UTF-8 encoding to a string, and then percent-escape the resulting bytes.

 

 

https://en.wikipedia.org/wiki/Percent-encoding

javascript中的encode

标签:

原文地址:http://www.cnblogs.com/shalleryu/p/4897595.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!