前端emojs_Js 过滤emoji表情...持续补充中..

Differences between encodeURI, encodeURIComponent, and escape:Unicode characters

As a simple example of Unicode (non-ASCII) characters, the table below shows the URL encodings for part of the Cyrillic subset of the Unicode character set (\u0410 thru \u042F). Note that the same Unicode character may produce the encoding %uXXXX if you use escape and the encoding %XX%XXif you use encodeURI or encodeURIComponent.

Importantly, the functions escape, encodeURI, and encodeURIComponent work like that for other parts of the Unicode character set as well: only the escapefunction may return the encoding of the form %uXXXX. (See also ASCII andupper ASCII characters.)

chr escape(chr) encodeURI(chr) encodeURIComponent(chr)

А %u0410 %D0%90 %D0%90

Б %u0411 %D0%91 %D0%91

В %u0412 %D0%92 %D0%92

Г %u0413 %D0%93 %D0%93

Д %u0414 %D0%94 %D0%94

Е %u0415 %D0%95 %D0%95

Ж %u0416 %D0%96 %D0%96

З %u0417 %D0%97 %D0%97

И %u0418 %D0%98 %D0%98

Й %u0419 %D0%99 %D0%99

К %u041A %D0%9A %D0%9A

Л %u041B %D0%9B %D0%9B

М %u041C %D0%9C %D0%9C

Н %u041D %D0%9D %D0%9D

О %u041E %D0%9E %D0%9E

П %u041F %D0%9F %D0%9F

Р %u0420 %D0%A0 %D0%A0

С %u0421 %D0%A1 %D0%A1

Т %u0422 %D0%A2 %D0%A2

У %u0423 %D0%A3 %D0%A3

Ф %u0424 %D0%A4 %D0%A4

Х %u0425 %D0%A5 %D0%A5

Ц %u0426 %D0%A6 %D0%A6

Ч %u0427 %D0%A7 %D0%A7

Ш %u0428 %D0%A8 %D0%A8

Щ %u0429 %D0%A9 %D0%A9

Ъ %u042A %D0%AA %D0%AA

Ы %u042B %D0%AB %D0%AB

Ь %u042C %D0%AC %D0%AC

Э %u042D %D0%AD %D0%AD

Ю %u042E %D0%AE %D0%AE

Я %u042F %D0%AF %D0%AF

Note also that for many Unicode characters, encodeURI or encodeURIComponentreturn the encoding %XX%XX%XX rather than %XX%XX, for example:

chr escape(chr) encodeURI(chr) encodeURIComponent(chr)

≠ %u2260 %E2%89%A0 %E2%89%A0

≡ %u2261 %E2%89%A1 %E2%89%A1

≢ %u2262 %E2%89%A2 %E2%89%A2

≣ %u2263 %E2%89%A3 %E2%89%A3

≤ %u2264 %E2%89%A4 %E2%89%A4

≥ %u2265 %E2%89%A5 %E2%89%A5

(See Mathematical and Special Symbols for more examples.)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值