[WordPress] 外掛分享: Full UTF-8

首頁外掛目錄 › Full UTF-8
WordPress 外掛 Full UTF-8 的封面圖片
400+
安裝啟用
★★★★★
5/5 分(6 則評價)
4181 天前
最後更新
問題解決
WordPress 1.0+ v2.0.1 上架:2011-01-13

內容簡介

完整的 UTF-8 編碼提供完整的支援任何 UTF-8 字符。
如果沒有這個外掛,WordPress 會在第一個 4 位元元組的 UTF-8 字符之後截斷任何字符。

假設您從網頁複製一些文本並將其粘貼到編輯器中。您會看到
一切都很好,所以您按保存按鈕。當頁面重新加載時,您會發現您的帖子
在一個看起來相當隨機的點上被截斷了。那不是隨機的。
斷點是第一個 4 位元元組的 UTF-8 字符的位置。
任何從那個字符到帖子末尾的內容都會被永久丟失。

如果您寫了4位元元組長的UTF-8字符,您絕對需要安裝此插件。
怎麼知道?許多中文字符,音樂符號和數學符號以及表情符號
都是 4 位元元組長。但您總可以嘗試繪製一些東西來自己檢查。
如果您在0x後得到了一個超過四個數字的unicode十六進制值,則它是一個4位元元組UTF-8字符。
例如,G-clef 是一位,因為0x1D11E在0x之後有5個數字。
1. 這個外掛是 WordPress的“直接安裝”。直接安裝是wp-content
目錄中的高級插件,在存在時替換WordPress功能。
2. 這個外掛完全自動。您不需要做任何特殊的事情
在啟用它後使其工作。

有趣的鏈接

書寫系統的美麗
書寫系統的複雜性
什麼是 UTF-8?

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Full UTF-8」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Full UTF-8 adds complete support for any UTF-8 character.
Without this plugin, WordPress truncates anything after the first 4-bytes-long UTF-8 character.
Suppose you copy some text from a web page and paste it into the editor. You see
everything is fine, so you hit save. As soon as the page is reloaded, you find out that your post
has been truncated at a point that seems to be quite random. Well, that’s not random.
The breaking point is the position of the first 4-bytes-long UTF-8 character.
Anything from that one up to the end of the post is irremediably lost forever.
You definitely need to install this plugin if you write 4-bytes-long UTF-8 characters.
How do you know that? Many Chinese characters, musical and mathematical symbols and Emoji icons
are 4-bytes-long. But you can always try to draw something and check for yourself.
If you get a Unicode hexadecimal value with more than four digits after 0x then it is a 4-bytes-long UTF-8 character.
For example, a G-clef is one because 0x1D11E has 5 digits after 0x.
1. This plugin is a WordPress “drop in”. Drop-ins are advanced plugins in the wp-content
directory that replace WordPress functionality when present.
1. This plugin is completely automatic. You are not supposed to do anything special
to make it work after activating it.
Interesting Links

Beauty of Writing Systems
Complexity of Writing Systems
What is UTF-8?

延伸相關外掛

文章
Filter
Apply Filters
Mastodon