There is function json_encode() which is converted special characters to Unicode in PHP.
Example:- ...