Conversion between Simplified and Traditional Chinese characters in the PHPUTF8 character set

Source: Internet
Author: User
Conversion between Simplified and Traditional Chinese characters in the PHPUTF8 character set

Conversion between Simplified and Traditional Chinese characters in the UTF8 character set

Conversion between Simplified and Traditional Chinese characters in the UTF8 character set

  1. /* Convert the simplified and traditional Chinese characters in the UTF8 character set */
  2. //
  3. Class utf8_chinese
  4. {
  5. Private $ utf8_gb2312;
  6. Private $ utf8_big5;
  7. Public function _ construct (){
  8. $ This-> utf8_gb2312 = "tens of thousands and ugly professional Cong Dong Si lost two strict tickets. Feng is standing for Liju, Yiwu Leqiao Xi township, where books are sold in disorder, and the loss of cloud is an acre of land. only from the warehouse of the price of the masses of the experts will attack the umbrella Wei Chuan, hurt the Lun Peng pseudo queue, Yu commission, Yu Xia, and the remote investigation side. debt dumping and payment compensation and storage of children against the party Lan guanxingz animal maintenance in the gang book write Junnong Feng rushed to the situation frozen net miserable Ling together a few Phoenix with Kai when I hit the hacker, I cut my opinion on Liu, then I just created and deleted the hacker, and I tried to encourage the office to work hard. I tried to sell Lu halogen to the medical community in the Zhuyun district. yao Wei, but the factory office experienced severe pressure and hate when the toilet room was located in Xianxiao hucheyu county, Shen Yu, and the dual-hair change, the stacked leaf No. sighed and panted Lu? Yao t listen to Qi Wu Yu vomiting and vomiting abuses. hello, you can't spray it. you can yell at it. jiang Luya Yu Jiao Yu Ying Yu Miao Ma Sun Xuexiao Ning Bao Shi Chong Xi xian gong Kuan bin sleeping to guide Shou Yi er Chen Yao dead during the full-layer renewal session, I was a member of the Yiyu region, who was a member of the Yiyu region. shuai Shi's tent curtain is shown with a frame to help you handle the power of the screen and wide Village Qinglu library should be under the temple Pang waste when opening and abandoning Zhang Mi bending and playing strong when recording Yan through the diameter of the Yu Yi Yu worried about the state of the Huai Yu pity total Yu Lian Jin evil Xiao Kai Xiao angry Yu Yue Yu hanging Xiao Jie fear miserable Yu i'm used to being angry, and I'm willing to block myself from being lazy, busy, and busy. stop twisting and choose to hang up and throw, and throw, throw, and throw. shake your hands, shake your hands, shake your hands, gather your enemies, collect your data, fight your hands, and cut off your old days. miscellaneous Right bar to Yang Xiaojie extremely structure Shu Zao Shu Yu gun Feng Xiao cabinet Ling Shujia standard stack Li Dong Ling tree Qi sample Ling Qi radial horse files yaoqiao Hua Huasheng paddling pile Dream Ghost detection zookeeper loudid elliptical loudid eucalyptus zookeeper horizontal Sakura published cupboard loudid canonicalized Huan Yi Ou J. the residual oil is broken, and the hub is broken. PZE Jing Jie sprinkling (turbidity test when the traffic decreases, and the traffic decreases. when the traffic decreases, and the traffic decreases. ling disaster Canyi furnace stew Wei Yi point refining rotten hydrocarbon candle smoke annoying burn Ye braised hot ash Huan yi ye Jiu Qian holding a calf like a wild yellow i'm sorry, I am sorry, I am sorry. xuan, Yao, Chang, Li, Li yarn wrinkle yarn salt monitoring and theft of the disk wide blind eye vision of the Ji bauxite ore yards brick Yan Shan Li gravel foundation si Shuo Yan really powerful thank you! bamboo shoots, pens, pens, soup, screens, zither, and Zheng, and signs correction of Red Yarn Yun when I was tied to the velvet knot, I painted it to the hacker, and finally twisted the system. twenty rope-dimension cotton silk Silk binding and cutting-edge sewing and cutting-edge shame, shame, hearing loss, joint operation, Cong Su, intestinal skin, kidney swelling, threat, gallbladder, Shengyu, titanium gum, vein, dirty umbilical, brain, pus, feet, removal of sputum, face, pickled, right-mouthed, greasy yi Teng Yu ship cabin Yan Yi festival Wu Lu Yi Si Cang Su Yun Ping stem Lu Yi Jing Jian Xiao Jing ling Xiaodong Rong Ling Ying Lu Ying Xiao Sa Lu Jiang yundun yellow Grass wax fly yellow grass I have a good time, and I think it's easy to get started. I have a good reputation, and I want to make sure that I want to talk about it. on the subject of legal proceedings, the investigation of evidence, the evaluation of evidence, the evaluation of fraud, the diagnosis of fraud, the diagnosis of fraud, the translation of fraud, and the trial of the famous poetry for more information, please refer to the following documents for further explanation. yi Mouyi lie and say that he has been an Oracle hacker. he is familiar with the slang riddle. He is also a hacker. yu Gu Yu Bei Zhen negative Gong financial responsibility Xianxian defeat account goods quality vendors greedy and poor, purchase and store through erjian Yu posted expensive loan and trade fee he Yu thief Jia bribes, Money, Money yan Qiyue Jian jian yi Wei I have been talking about it, and I have been talking about it. the migration and operation of edge liaoda are still far away. even the delayed tracking is suitable for the delivery of the remote code, and the postal code of Deng Xiaoyu is located in the neighboring area of Yu Xiaoyu, Zheng Weiyu, and Yu Weiyu. soy sauce and salt extract Li Xiaojian (Ru, r, d, d, r, d, d, r, d, t, d, d, r, t, t qin Jun tungsten cobalt hand-held RH, er, EU, and copper, aluminum, indium, hazelnut, shovel, ammonium, silver, RB, cast, and spread RE, TB chain pin lock Li Xiaoyu pot zirconium OS rust files front zinc zookeeper cutting-edge antimony zookeeper fault anchor zookeeper keywords: manganese ingot Key saw, keywords, Keywords: zookeeper mirror zookeeper. when there is room for congestion and congestion between the two sides, the two sides of the door are heard, and the two sides are reading the threshold. teams Yang Yin stage Lu Yu Chen Yu Shaanxi province insurance with hidden Li Yan difficult young Xiao Wu Yan Jing Xiao Wei Ren Yi Han Yu the top of the rhyme page, the top of the line, the top of the mouth the amount of apsaradb for hybriddb for MySQL full-feeding wonton bait raolu wonton cake wonton train and drive the horse, drag the donkey, and drive the horse, and then run the horse in the camel, and then run the horse, the horse zookeeper zookeeper hip and five zookeeper zookeeper catfish inspecies the upper part of the system is the upper part of the system. when the birds of the Rooster are singing, the birds are running, and the birds are running, the birds are running there are a variety of zookeeper and zookeeper lu gu Zhi's consultation system is only in the series of fan song did not try to make trouble, don't idle dirty fight ";
  9. $ This-> utf8_big5 = "There are two major differences between Alibaba Cloud and zookeeper. Why does it mean that there are two major differences between the two? the Asian production industry has already announced that Alibaba Cloud's leading group members have been using Alibaba Cloud products to improve their performance. please refer to the following link for more information: please refer to the following link for more information: in our region, we have been making great strides in our region. is there any problem after the change? I have been hearing the news that some technical staff have been informed of the problem. there are two major problems in this process. the country's leading region has been leading the country's largest number of regions, including mainland China's leading regions. our website is currently under development. Our website has been hosted by Alibaba Cloud, and our website has been hosted by Alibaba Cloud. I have written some practical examples, and I have written some suggestions about the future growth of our competitors. please refer to the following link for more information: and there are still too many concurrent users who need to handle the problem. please wait a few minutes later. when there are too many concurrent users, please wait a few minutes later. I would like to announce that my website has been released soon. in the battle of the Communist Party of China please refer to the following link for more information: when there is no such change in the number of users, the number of authorized users cannot exceed the limit. when the number of authorized users fails, the number of authorized users cannot exceed the limit. the structure of the blockchain network is too large. please refer to the following link for more information: there has been a number of attacks in the market. There has been no improvement in the market. please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: some computers have been connected to many websites, which have already been released. please refer to the following link for more information: please refer to the following link for more information: there are two major problems in the future. please refer to the following table for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: we strongly recommend that our customers have been informed of the situation, and our customers have been informed of the situation. some authors may discuss the legal provisions of the legal representative's legal representative please refer to the following example for more information: please refer to the following link for more information: please refer to the following link for more information: why? there are two major challenges: there will be a number of large numbers of small numbers of vehicles. please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: there are two major reasons for this problem: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: there are two major problems in the future. please refer to the following link for more information: there have been several attempts to improve the performance of these products. please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: there are too many other problems in the future. there are too many problems in the future";
  10. }
  11. Public function gb2312_big5 ($ str ){
  12. $ Str_t = '';
  13. $ Len = strlen ($ str );
  14. $ A = 0;
  15. While ($ a <$ len ){
  16. If (ord ($ str {$ a}) >=224 & ord ($ str {$ a}) <= 239 ){
  17. If ($ temp = strpos ($ this-> utf8_gb2312, $ str {$ }. $ str {$ a + 1 }. $ str {$ a + 2 }))! = False ){
  18. $ Str_t. = $ this-> utf8_big5 {$ temp}. $ this-> utf8_big5 {$ temp + 1}. $ this-> utf8_big5 {$ temp + 2 };
  19. $ A + = 3;
  20. Continue;
  21. }
  22. }
  23. $ Str_t. = $ str {$ };
  24. $ A + = 1;
  25. }
  26. Return $ str_t;
  27. }
  28. Public function big5_gb2312 ($ str ){
  29. $ Str_t = '';
  30. $ Len = strlen ($ str );
  31. $ A = 0;
  32. While ($ a <$ len ){
  33. If (ord ($ str {$ a}) >=224 & ord ($ str {$ a}) <= 239 ){
  34. If ($ temp = strpos ($ this-> utf8_big5, $ str {$ }. $ str {$ a + 1 }. $ str {$ a + 2 }))! = False ){
  35. $ Str_t. = $ this-> utf8_gb2312 {$ temp}. $ this-> utf8_gb2312 {$ temp + 1}. $ this-> utf8_gb2312 {$ temp + 2 };
  36. $ A + = 3;
  37. Continue;
  38. }
  39. }
  40. $ Str_t. = $ str {$ };
  41. $ A + = 1;
  42. }
  43. Return $ str_t;
  44. }
  45. }
  46. // This document runs on the UTF-8 encoding PHP100.com.
  47. Header ("Content-Type: text/html; charset = utf-8 ");
  48. $ Chinese = new utf8_chinese;
  49. // Simplified and complex UTF8
  50. $ Str = "long live of the People's Republic of China ";
  51. $ Str_big5 = $ chinese-> gb2312_big5 ($ str );
  52. Echo "Original: $ str
    ";
  53. Echo "converted to traditional Chinese: $ str_big5
    ";
  54. // UTF8
  55. $ Str = "Central People's Republic of China ";
  56. $ Str_gb2312 = $ chinese-> big5_gb2312 ($ str );
  57. Echo "Original: $ str
    ";
  58. Echo "converted to simplified format: $ str_gb2312
    ";
  59. ?>

PHP

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.