Unicode 4-Byte Char Filter

Categories

Component ID

2689041

Component name

Unicode 4-Byte Char Filter

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Looking at this:
https://www.drupal.org/node/1824506#comment-6881382

MySQL (versions older 5.5.3 or not using utf8mb4) is unable to save unicode characters of 4 bytes. So having any of these characters in your long text fields will cause a MySQL error and break things.

This is to convert all characters of 4 bytes into HTML entities. Recommended to add this filter to the bottom of the stack in your text format.

(Note to self: this might be helpful http://www.amp-what.com/unicode/search/ )

Using LONGBLOB (e.g. in watchdog) as fields type in MySQL seems to handle these characters fine!