How to use Tamil character in JSON php
<?php
/* Author : Girija S
Date : 4/21/2011
Description: To Check the Special Chars when we pass in the json server
*/
$text = "தமிழ் அகராதி With the exception <br>of HTML 2.0's ", &, <, and >, these entities are 'all' <br>new<br/> in HTML 4.0 and may not be supported by old browsers. Support in recent browsers is good.The following table gives the character entity <p>reference, decimal character reference, and hexadecimal character reference for markup-significant</p> and internationalization characters\n, as well as the rendering of each in your browser. Glyphs of the characters are available at the Unicode Consortium.<p>This is some text in a paragraph.</p>";
$text = json_encode(utf8_encode($text));
echo $text;
$text = json_decode($text);
echo $text;
?>