Coding <?php
/**
* When the coded comparison is made, it is not immediately available and needs to be processed.
* Of course, simple look-up table is possible, but not efficient.
* Now take simplified conversion as an example to illustrate the use of the comparison table
*/
/**
* Connect and open the comparison table
*/
$conn = mysql_connect ();
mysql_select_db ("Unicode");
/**
* Extract Big5 and GBK encoded in the table with only 13,487 Big5 (including symbols)
*/
$sql = "Select gbk,big5,gb2312 from Unicode where Big5!= '";
$sql = "SELECT * from Unicode";
$rs = mysql_query ($sql);
echo mysql_num_rows ($rs). " <br> ";
/**
* Read the data to the array, pay attention to the key and value processing
*/
$code = Array (0=> "GB", big5=>0);
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service