UTF-8 encoding is a way to go when you need a support for a multi-language sites. However sometimes it might be frustrating seeng some unwanted characters on your page. Do always validate content that user posts to make sure you have a valid UTF-8.

$text = iconv("UTF-8","UTF-8//IGNORE",$text);

Dima Svirid

Software architect, JAVA, Spring, Hibernate, AngularJs, Backbone, MongoDB, Oracle. CTO and Co-Founder of Homeadnet.com

More Posts

Follow Me:

Tagged with: