phpbb/phpbb — pull request #1880 by nicolas-grekas (2013-11-21 11:46:59+00:00)
Title: Rely on Intl and mbstring, use patchwork/utf8 as fallback

Hi phpBB team,

this pull request is an open invitation to use [patchwork/utf8](https://github.com/nicolas-grekas/Patchwork-UTF8) as phpBB's fallback UTF-8 handling implementation.

As a quick introduction, patchwork/utf8 is both a portability layer for mbstring, iconv, and intl Normalizer and grapheme_* functions, and an UTF-8 grapheme clusters aware replica of native string functions.

It is included in Laravel4 and ownCloud, and as such, it tops more than 400k installs on packagist and a dedicated package in debian. It is well unit tested.

By using directly intl's Normalizer and mbstring in phpBB, and delegating portability to patchwork/utf8, you could gain a lot of code cleanups and simplification. That patch attached shows what is already and quickly possible. That would mean less code to maintain on your side, and more collaboration between projects, as fixes for Laravel4/ownCloud/phpBB/etc. would benefit the community as a whole.

I'm an old user of phpBB and learned a lot of PHP reading your code. patchwork/utf8 also takes some inspiration in your code. I would be very happy to contribute back, and that's why I'm doing this also.

If you consider this request, I believe that more feature of patchwork/utf8 could be used in phpBB, and reciprocally that some problems you address in phpBB could migrate to patchwork/utf8 (e.g. confusable handling).

Waiting for your opinion on that,
With best regards,
Nicolas