跳到内容

UNFC Nörmalize

v1.0.6

bonger · 2016年8月2日 上架

Normalizes UTF-8 input to Normalization Form C.

正在使用
90+
评分
5.0 / 5
累计下载
3,112
最近更新
2017年1月19日
2 条评价需要 WordPress 3.9.13+已测试到 4.7.40

截图

Before and after: pasting non-normalized text into a post's title and content.
Before and after: pasting non-normalized text into a post's title and content.
Before: uploading a file on macOS with Firefox and then viewing with Safari (broken in Safari).
Before: uploading a file on macOS with Firefox and then viewing with Safari (broken in Safari).
After: uploading a file on macOS with Firefox and then viewing with Safari (whee it works).
After: uploading a file on macOS with Firefox and then viewing with Safari (whee it works).
Front page of the database scan administration tool.
Front page of the database scan administration tool.

This is a souped-up version of the Normalizer plugin by Torsten Landsiedel.

It adds WP filters to normalize UTF-8 data coming into the system to the de facto web standard Normalization Form C. The Unicode Consortium report is at Unicode Normalization Forms.

Polyfills

For best performance install (if possible) the PHP Internationalization extension Intl, which includes the PHP class Normalizer.

However the plugin works without the PHP Intl extension being installed, as it uses (a modified version of) the Symfony Normalizer polyfill.

Also text pasted into (most) inputs is normalized immediately using the JavaScript normalize() method. For browsers without normalization support, the unorm polyfill is used.

Background

For further info, see the WP Trac ticket #30130 Normalize characters with combining marks to precomposed characters and this Make WP Core comment.

The plugin also works around the Safari-specific issues raised by the WP Trac ticket #22363 Accents in attachment filenames should be sanitized.

Scanner

For existing data, the plugin includes an administration tool to scan and normalize the database. Important: before using this tool to normalize, please backup your database. This is especially important if your database contains non-normalized serialized data, as this plugin uses the same suck-and-see technique as interconnect/it’s Database Search and Replace Script in PHP to deal with serialized data, and is fallible.

And

A google-cheating schoolboy French translation is supplied.

The plugin should run on PHP 5.2.17 to 7.1, and on WP 3.9.13 to 4.7.1.

The project is on github.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums