mirror of
https://github.com/getgrav/grav.git
synced 2026-02-23 15:11:27 +01:00
The `Truncator`-class fails when the truncated text contains unicode characters with a nice exception:
"DOMDocumentFragment::appendXML(): Entity: line 1: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xC3 0xE2 0x80 0xA6"
By using the `PCRE_UTF8` modifier `u` everything is UTF8 and all is fine.