International language support with PHP 7 and Perch
One of the things I like about Perch is baked-in support for international languages. For example, when I use Chinese in a title, 葡萄美酒夜光杯, it is automagically converted to a pinyin slug, like this: pu-tao-mei-jiu-ye-guang-bei.
The only required dependency is that the PHP intl extension is installed on your server host.
After installing PHP 7, see if the extension is active by looking at in the Perch diagnostics report. I also checked using phpinfo. It was an easy fix –– I only had to run the following command:
sudo apt-get install php7.0-intl
After that, restart Apache:
sudo service apache2 restart
And was good to go. See the slug on this post to see it in action.