Best WordPress Hosting
 

Top reasons not to use setlocale() for character encoding conversion

via make.wordpress.org => original post link

Many WordPress plugins use the setlocale() function.

While it’s generally safe to use setlocale() to get various information about a specific locale, it’s essential to understand that using setlocale() to perform string manipulations has significant disadvantages.

The goal of this article is to raise awareness about those disadvantages.