Enforce UTF-8 on JSON export using PHP

When you export JSON form PHPwhich contains data from an “unclean” data source you must enforce UTF-8 upon the data that will be added into your JSON structure. ¬†Below I’ll show an example of exporting JSON and enforcing UTF-8 upon each record data entity.


Author: Richard Soares

Director of Software Development & Senior Technical Project Manager