A few days ago, I asked the oso forum if there was any source code and no one replied. Finally, I made up my mind to transplant such a function and thanked the netizen Keyes for providing the Delphi source code for transplantation. The call method is $ txtbig5togb ($ txt ). (Note: the source code in the includedata_big5.php; this file is an array, in the http://caocao.oso.com.cn/d a few days ago I asked the oso forum whether there is this source code, no one replied. Finally, I made up my mind to transplant such a function and thanked the netizen Keyes for providing the Delphi source code for transplantation. The call method is $ txt = big5togb ($ txt ).
(Note: in the source code, include "data_big5.php"; this file is an array, in bytes .)
/*************************************** ********************************
Written by caocao
Caocao@eastday.com
Http://caocao.oso.com.cn
With the help of Keyes
Keyes2000@263.net
Http://my-wjl.scu.edu.cn /~ Keyes
**************************************** *******************************/
Function isbig5 ($ code)
{
If (strlen ($ code)> = 2)
{
$ Code = strtok ($ code ,"");
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.