_php techniques for simplified conversion classes in PHP UTF8 coding

Source: Internet
Author: User
Tags ord sodium strlen snipe
Once looked for a JS version of the, but to the UTF8 code can not be used, and then produced a self write a thought. In fact, the principle of the implementation of this code is very simple, just a replacement character set process, I believe most people can write out. The following is the code, do not know if there is a bug, if you have problems in use, you can propose to
Copy Code code as follows:

<?php
<meta Charset=utf-8 ">
Class Utf8_chinese
{
Private $utf 8_gb2312;
Private $utf 8_big5;
Public Function __construct () {
$this->utf8_gb2312 = " Million and the ugly professional Condons lost a 丬 Fenglin for Li, Yiwu Lecho Xi Township books to buy chaos in the loss of Yunbia production MU pro-obscene 亸 billion only from the warehouse of the price of good guys will slouching umbrella Wei Chuan 伥 shabby pseudo queue more than 佥, richest, executioner, Minamata couple the two of you to pay the debt dumping 偬 hunchback 偾 傥 save nuo son to Yanzhou Party orchid Champagne animal Guanchenz inside the gang book, the Army agricultural Tomb von 冁 condition frozen net desolate Ling A few Phoenix fu with Kai hit Dang Chisel, Liu is just create delete planning manipulate executioner 刿 Kelly knife Peel play advised to move exciting labor potential hoon 勚 evenly 匦 GUI District Medical Hua Association single sell Lou Halogen, but 卺 Factory Hall of the pressure tired of the toilet van 厣 mansion Kitchen Stables County Ginseng 叆 叇 double hair to fold leaf number sigh after the scare Lu 吣 ton listen to Kai Wu hmm raving Click to choke Kuai the throat of salty, creak beep nacha 咴, Xiao Lao 唡 suona Zao Call Marine tut sik, 啴 screaming and Kuch, oh, shh costing, and Lu-Boingo Wai Chimneys country map round sheng Kuang ban bad block Jian Tan prisons Dam dock grave Fall Ridge long Li base Ken loessial chalky Jiong Dang 垯 nao 埘 Xun Guo Nian zengcuoan cut down miao wall strong sound shell pot 壸 with a head of the first praise clip Lian Huan Fen prize Austrian makeup women's mom 妩 brood over Shan ginger Lou ya GUI Rao entertainment paragraph Xian wa baby Chan ao 婳 ai wives Grandma Ohauncey! Real Pet Review of the Constitution Gongconbin bed to seek guide life will dust Yao embarrassed body floor target drawer of sandals Yu years old rough Hillock Xian ao Lan Island Ridge Shing 峃 le gorge 峣 Jiao Zheng Luan Lao lai Risk Peaks Rong 嵚 yu person Ridge top Gong mercapto currency handsome division draperies account with frame help 帱 帻 ms Elaine Power 幞 Dry and wide Zhangqingxian Wu library should temple Pang waste 庼 Lin Open the Zhang Mixia bend the strength to record 彟 Yan-jing-Yu-yi repentance worry 忾 Huai State counselling habits gastro retort despair shabby pity total frontline Yiwen love earnest evil mourning 恹 Kay CE annoyed Yun Yuet exhausted relaxation ashamed mend accustomed min Bland anger offers 慭 憷 melancholy deserves lazy stupid the play of the war 戋 households in the fight against the spread of the door of the attack, sweep and pull, pull, pull, pull, pull, pull, pull, and pull choose to hang zhi 挜 I tart with Cambridge make a squeeze 挦 fishing damage to pick up and change the fight according to the twist of the slap throw Shan mixed whipped wider to mix and put together with the 摅 to shake off stall 撄 support to drive the 撺, impressive save the enemy convergence number Zhai LAN fighting no old Shi Yang Tan day 昽 bright sun xiao ye Halo hui temporary Warm Mozart Operation Park machine kill miscellaneous right to Yang Jinjie polar structure of the fir-axis stable jian Cheng gun maple owl cabinet lemon 柽 zhi grid standard stack of weilong oak column Tree habitat Luan Coggygria Branch radial frame semi-final bridge birch Chinese juniper paddle pile dream 梼 Cornus check lattice coffin Casket 椠 Luo Oval building Lam 榇 Palmetto Beech Cashew The threshold of the of the Qiang cherry enshrined the cupboard oars, Purlin Huan 欤 European fighter dead War Remnant Meteor funeral Funeral and ruin the hub of the dead felt 毵 氇 gas hydrogen argon the Hui Han sewage soup Because they ditch no Feng retting Bambu wei Hu you muddy tears 泶 the lok of the overflow and pour the water in the Jia of the shallow slurry poured zhen yingde 浉 turbidity test Kuai ji Liu Chan muddy hu Xun 浕 tu flood lai ripple of the Yun Huan wash the flow of the wash-stream, and the deep Lake Lu liling the 渑 of the Shenyang infiltration of the sea-temperature swim bay wet Splash 溆 溇 of the Decanter Yan she Man the filtering of the Luan Riverside beach Ku-to-yen 漤 Ying Xiao Lian Weichai zhu Lan Lai Hao lamp ling disaster could yang furnace Stew Wei Soy point refining a rotten hydrocarbon candle burning ye Braised 焘 calcined hot-hwan-huan leavened love ye yak lead sacrifice calf stubborn 犷 Mary Jude Jackal Roe Terminal hunting lone lion 狯 狰 prison 狲 猃 hunting 猕 猡 Pig Cat Hedgehog to offer Rex-man 玚 ma Wei Huan Xian 玱 seal min 珏 matangi hun 琎 ai Xuan Ying zan urn ou electric painting chang Yu domain boil malaria pandora ulcer 疬 sore crazy blister drochs carbuncle spasm 痖 tuberculosis 痪 epilepsy infatuation 瘅 Shen Bury fistula Paralysis addiction gall tinea epilepsy 癯 ai wrinkle 皲 light salt cover steal disk 眍 canthus 眬 open Eyelid Wangshitang Yard Brick of the Rocky alum mineTridacna inkstone sulfone Rough gravel base 硁 si shuo kip qiaoqi 硙 Stilts Jian Li walks alkali Crown gun ceremony 祎 you pray for the Lord Lu Zen away from the bald stalk of the accumulation of filth Nongsa 稆 tax Jesus steady 穑 poor and steal the hole to peep sinus difficult vertical competition Benedict Bamboo shoots Pen Jian cage 笾 Jian honouring sieve yuandang Zheng Jane 箓 ze suitcase sheath basket sisters Xiao 篑 basket fence Duan indica buy properties Guangdong dung grain harsh grits tight 糇 絷 correction Red 纟 Fiber Zhou about class 纥 纨 the texture and Guiling pure pi yarn outline na size longitudinal lun paper Heraldry limonene 纼 Reins 绂 Practice Group of gentry fine weaving end crepe trip 绋 shortage by the binding velvet knot 绔 around 绖 quilting painted to the gorgeous jiangyin 绠 burnt-out silk embroidery 绤 sui sash ti thread ling 绬 continued Qi Fei-fashionable can go rope-dimensional cotton shou stretch silk 绹 lock curled full bloom WAN Green prefix call paragraph network indistinct the 缊 of multicolored 缌 satin fusiform 缏 stitching 缑 of the slow-bound strand lowered rim path mantra constricted 缜 缞 缡 the 缣 Felling 缳 pay 缵 Poppy snare was walking my, 翙, 翚, 耢, and disgrace, Columbine and 聍 the kidney, and the skin 聩 and the kidneys, and the 肷 of the neck, and the neck, and the neck, the pus peptone the neck, and the kuai of the neck, and the neck and the neck and the neck and the patellar dirty and 舣 ship cabin hygiene difficult 艹 Arts Festival 芈 Vespasian Wu Lu 苁 Reed descurainiae Amaranth Chang Cang zhuxi Su Ying stem long Tsutaichi Ying Cocoon Jing Jian solitary pod 荙 荛 buckwheat hui Chestnut and cubeb ying fluorescent luo nettle 荩 shade Sun lactuca hongyexintong medicine 荮 pro-hand Lotus Dill 莴 Siegesbeckiae won 莸 Ying Ying Ulva 萚 luo ying Cissa onion 蒇 蒉 Shing thistle Hedges 蓣 hongying mo Qiang Cayratia 蔺蔼蕲 Yun He ligustilide Moss to the false worm Qiu 虮 Although shrimp 虿 eclipse ant ma silkworm oyster clam sting clams A very stinging Vanessa 蛲 cockles 蛴 decidua wax Fly 蝈 cicada scorpion being caged counter salamanders 螀 mite 蟏 Peacemaker Niao socks attack 袆 pick up 袯 loincloths walks trousers tuck jacket 裣 Rags 襁 View 襕 welcomed 觇 exploit Gou wizard 觌 觍 and, and involved to Kun qu reputation 讦 讧 to let the lecture on the hearing 讱 speak Taboo 讴 ju surprise Xu Yu on the analysis of the 讻 of the irony of the introduction of the doctrine of the introduction of the theory of criticism 诇 the word 诋 Zhao scenery translation 诐 Dingyi con try Lei poetry and 诖 sincere criticism 诙 speech shenshen the Sunfaith astonished buffoonery lively 诪 commandments 诮 falsely exaggeration read Zhu Chino 诼 class 诽 shifted who flattery tune recite Chan to talk about Yi Zhun lied about the 谇 to tell the truth of the book 谌谍 The Truth of the Riddle 谔 谖, Boaster 谞 谡 Xie Slander 谩 谫 Tan speak Spectrum lumpy 谳 the Delirium prophecy Gubei Zhen negative Yun Gong responsible for the poor and the quality of the sale of the goods, and the purchase of a cheap to sell the 贳 of your 贶 trade fee He Hui thief Zhi Jia bribery wealth lease bribery stolen assets gai 赆 赇 Relief lai Credit 赍 redemption reward bi alms 赓 compensate Danfo 赗 fat 赙 earn a false praise 赟 give support win Gan 赪 Zhao Drive 趱 fan jump stumbled zhi 跞 practice tap Qiao 跸 Undercover Seizo dance 踌 trace stumble 踯, nie 蹒 蹰 leap 躏 Bounced car rolling Track Xuan Marquis the wheel Shevchenko 轳 axis zhi anecdote 轷 Chang The squeaked the light 轺 load 轼 sedan 轾 辀 辁 compared to the Lu 辌 spoke y the happy inspectors The rolling reel and bridle the braid and the Liao da Move over the Mai Yun and this into the far breach even 迟迩迳 trace 逦 luo Deng mail 邹邺邻 yu Xi jia Kuai Zheng yunyang 郸 christie the sauce fermentation yan the fermented 酾 Samarium 钑 Vanadium fishing mendelevium nd hsi-chai 钘 Calcium Plutonium titanium blunt note clock sodium barium steel sheet metal key chin June hook scandium francium holmium'll Shang money Zheng Pliers Cobalt pot CB Promethium Plutonium Cymbals Tomahawk drilling molybdenum tantalum potassium dian uranium iron Platinum Bell Mingshuo lead riveting cerium-thallium bismuth beryllium 铏 cuff rhodium-doped europium Forcipomyia 铘 nao 铚 clang copper-aluminum 铞 indium-sheathed-Milling collar thulium 铦 hafnium 铫 Chrome Ming 铮 cesium hinge iridium shovel 铴 ammonium Silver rubidium cast lawrencium shop 铻 rhenium terbium chain Keng pin lock lithium 锃 hoe pot zirconium osmium rust file 锊 front zinc matte californium Mace Rui Antimony end up bending their heads 锖 germanium chyi Kua 锟 锠 tin occluded gong hammer cone kam Shovel 锩 berkelium 锬 ingot key saw manganese Zi Shan wedge 锳 KailianClang strontium 锷 Its utensils spade Chung Forge sou 锽 fines einsteinium magnesium-plated 镃 hi town 镈 cadmium tweezers engraved nickel neptunium lutetium pick pound Yi Rong dart boring screwdriver coins Woonyoungia Mirror dysprosium arrowheads turnings 镠 tan 镢 handcuff protactinium lutetium upsetting lanthanum praseodymium 镩 offerings Stirrup Wok radium 镮 bracelet sickle ytterbium cymbals bodyguard pewter insert long latch flash yan 闬 shut ask Chuang 闱 Leisure Hong San Min stuffy door, 闼 min lu 闿 valve Court there 阃 lot read Langfeng Jayavarman threshold castrated Changxu Eris Learn am, 阎阏, 阒, tie down, 阘 阙阚阛 team Yang Yin Array Lu Sunchen Xing Shan 陧 meteorite insurance with the yin June difficult young collation Gimli mist Ji mold margaret beautiful static nightmare dal 鞒 鞯 鞴 Weshing Han tao Rhyme page top are mandatory to be Xu stubborn Gutton qi the pre cranial collar quite neck 颃 cheek Jie jaw Ying 颋 Chin Yi 颎 颕 ying a title 颙 jaw Zhuan yan forehead temporal 颟 sang Hao 颣 flutter 颥 frown zygomatic wind dust 飐 squall sa jdk Breeze 飖 wind fly to be satisfied 飗 hungry 饤 饦 a táng a chaos of rice drink 饩 decorated full feed cooking filled bait rates onto money Dumplings 饻 cake 饽 饾 hungry 馂 guo 馄 stuffing Hall Zha feed 馉 Sour greedy 馌 馎 famine of the dishes eels the of the San cuisine the horse riding on the piggyback naan Panyo the donkey 驲 drive Zang 驷 colt Consort in Camel Zou Drive crossbow aweary scold Xiao Pride hua houyhnhnms 骆骇骈 Li Cheng Inspection dairies 骎 June qi 骒 骓 骔 su 骖 cheat stallion 骙 Sao Wu ao Liu Qian gelding Puma Mule Cong 骣 Shuang longchamp crossbones hip patellar sideburns Smile pixy fish 鱽 鱾 squid puffer Lu Ying wahoo Flounder Catfish seabass rockfish 鲊 鲋 ilishaeformis Bao mackerel 鲒 鲓 tuna oolitic Tong Quarry Houmen 鲙 ectenes shark 鲝 svm sturgeon choke cobia silver carp, shad gun shark carp fuscescens crucian carp 鲬 mackerel Rendahli dolphin minnows herring kun brachypomum xenocypris pinchonii catfish seabream maruadsi 鲺 mullet Manta bagrid anchovy minke 鳂 Gill crocodiles 鳆 huso 鳈 medaka bream 鳋 ao fin sole widowed ray Rhodeus 鳒 鳓 swimbladder cod turtle eel cod bighead 鳛 siniperca eel scale trout guttatus elopichthys bambusa snakehead 鳣 Bird Dove Chicken iris 鸤 Gull Raven 鸧 bustard Poison Coo Thrush Cormorant Duck Owl 鸯 wagtail Strigidae Robin 鸴 Ostrich Lucille Prey Emu 鸹 鸺 Plover Pigeon Luan Hung 鸼 bunting Blackbird cuckoo bo 鹆 swinhoe Ukai Magpie Kakapo 鹍 Bulbul Peng 鹐 quail 鹒 Western 鹔 鹕 鹖 e Uighur Luci babbler Mo Harrier 鹝 Flycatcher 鹠 wagtail hok 鹢 ying 鹣 鹥 Partridge Pipit Vulture Snipe wrens Eagle Prinia 鹯 storks cahow 鹲 Wheat bran 鹴 鹾 Huang 黩 黪 strider 鼍 鼗 mole 齄 qi 齑 teeth 龀 龁 龂 龃 age Buck 龆 Bared gingival 龉 龊 caries 龌 Dragon Gong niche turtle Zhi Li Fan Song did not try to make the face of the clock to do dirty spelling ";
$this->utf8_big5 = " The ugly professionals are throwing two serious valves for the fun of the music, Joe. The book-Buying chaos Thanks Cloud mutual benefit acre blaspheming 嚲 billion from Rurunrun barn the Great 傴 umbrella, 倀 and 傖. Queue maid 僉 Batman couples 僥 reconnaissance flank 僑 snobbish peers 謝醒儂 俁 儔 儼 儷 儉 傯 to 僂 僨 save 儻 The Hime of the Communist Party of the 儺 confirmed the 兗 of the army and its 囅 the conflict, Higashitotsuka the Fung A couple of Phoenix 鳧 thin The 鑿 芻 plan Chris Lau have just been created to delete 剗 剄, 劊 劌 剴, and 剮 swords stripped encourage juice labor hoon fierce 勩 evenly 匭 scarcity District medical Agreement sell Toulouse 鹵 the 巹 factory calendars The 厙 compartment 厴 building kitchen 廄 ain't county 靉 靆 Syria to scare Marvel? Chattering Lu listen to 唚 tons Wu 嘸 囈 嘔 members 嚦 唄 咼 to 嗆 oooo Ving Tsun 哢 the throat 嚀 噝 upbraid 噅 the dumb 噠 嘮 啢 suona 唕 call 嘖 xianse 囀 Rodents you 嘽 tsunami jet 嘍 嚳 囁 ho 噯 噓 嚶 Testament split 嚕 Arrogant Park 謔 National map of the Holy 壙 壢 dams Hollywood graves altar monopolistic monopolistic 壚 softball settlements 坰 堊 cushion 埡 墶 壋 塏 堖 塒 塤 堝 cushion zengcuoan Graben abortion 壪 wall strong shell pot 壼 to be prepared to capture 奩 奐 of the award of the award of the Mothers Moments Glad Grace 嫗 媯 姍 Ginger Lou Tricia 嬈 delicate 孌 Entertainment 媧 嫻 the baby 嫿 嬋 the 嬸 媼 嬡 嬪 School 嬙 Grandma The palace is a bedroom of the longevity Yau embarrassed the corpse 屭 drawer the She the floundering 屨 the Lantau wouldn't tough the Longgang Da Nang 嶴 岚忻 Islands Fanling Chow 崠 巋 嶨 嶧 Strait 嶢 嶠 崢 巒 嶗 崍 嶮 brand 嶸 嶔 崳 嶁 Ridge top 鞏 巰 Money handsome teacher 幃 account curtain Bring frame help 幬 幘 front-line 冪 襆 do and celebrate Bailu 廡 Library The temple of waste 廎 廩 open up the 弳 bend the 彠 the 徠 of the memory confession the 愾 of the 慫, and the 憮 慪 the poor 悵 the 愴 愷 惻 惲 Joy 愨 Suspense 慳 Mercy fear sad punishment tired 愜 ashamed 憚 accustomed San surged anger 憒 willing deterrent 憖 fear 懣 lazy 懍 戇 the game 戧 battle 戩 Yozakku Poker 扡 and ask yourself whether to were the 摶 copied the robbery report, stall 攏 to chosen intercept hang sincere 攣 掗 撾 撻 gimp harass blocked 撟 struggle finish 撈 the pick 搗 by linen 擄 摑 dropped 撣 摻 摜 摣 攬 Press 攙 stranded 摟 stirring the 攄 擯 stalls 攖 攆 capture 擼 攛 Time 曠 helioversal 曇 Day 曨 obviously Shan 曬 the 曄 dizzy the Winfield temporary 曖 劄 The Pot the killing of the rights Yang 榪--櫪 梘 棖 rifle Maple 梟 Deli Lemonade 檉 梔 The bars the Hoteis 櫛 櫳 building 櫨 櫟 Bridge Hua Cypress Propeller stake dream 檮 棶 Check 欞 槨 櫝 槧 欏 Elliptical orbits the olive 櫬 palm 櫸 檟 threshold 檳 櫧 檣 cherry 櫫 closet 櫓 櫞 簷 檁 歟 destroyers 歿 殤 殞 殮 殫 殯 destroy 毆 洶 Chow No 灃 漚 asphalt boundary 滄 渢 溈 滬 濔 濘 tears 澩 瀧 瀘 濼 瀉 songkran zhonghong cleanse sprinkled 窪 浹 shallow plasma watering 湞 溮 濁 澮 economy 滻 渾 滸 concentrated 潯 濜 Wentao 澇 淶 ripples 潿 swirl 溳 渙 滌 profit 澗 increases Shibuya amyloidosis depths 漬 blaspheming 澠 fisherman Shenyang penetrated Hot Bay moist breakdown splash 漵 漊 潷 roll 滯 灩 灄 full 瀅 filter abused 灤 Riverwalk Beach 澦 abused 瀠 瀟 瀲 濰 瀦 瀾 Se The endangered of the stove 灝 brightening 煬 cocido 燴 hot Ashes hot Longoza braised 燾 煆 cataplasm love Grandpa 牘 yak the sacrifice 犢 strong 獷 獁 Judaism 狽 麅 獮 獰 unique narrow Lion 獪 hell 猻 獫 Hunter 獼 玀 pork cat hedgehog 獺 璣 璵 瑒 Wei and 瑲 Longxi 瑉 玨 琺 瓏 璫 琿 璡 璉 瑤 璦 suan 瓔 瓚 jar 甌 di she 疇 癤 malaria logging 瘍 鬁 piles 皰 癰 痙 itch 瘂 unhygienic paralyzed epilepsy fool 癉 瘮 瘞 瘺 癟 paralyzed addiction 癭 癩 癬 癲 臒 the 皚 矯 礬 mines 碭 Brick 硨Sulfoxide 礪 礱 Grit 硜 Silicon welcome 硤 磽 磑 礄 sure alkaline Chan 磣 berberine turnings roll fan 禰 禎 prayer accident 稟 Paul Zen Bald 稈 穢 covac 穭 Tax Jesus stability 穡 poor theft tricks 窯 竄 Hive Glimpse Ricci 窶 erector spinae campaign Stoke 筍 Pen 筧 箋 Cage Architecture 篳 Filter 簹 Kite raising signature 籙 簀 篋 籜 籮 簞 簫 簣 簍 Basketball fence 籪 籟 糴 秈 糶 糲 Cantonese dung Food and 糝 餱 縶-Tangled-紆-grade 紂 Shadow/紈-纊 紵 紖 The new 紓 line 紺 絏 紱 Training Group gentleman end 縐 絆 紼 絀 the 繹 kidnapped 紿 fuzzy around 絝 絢 絳 絞 system 綆 綃 silk embroidery 綌 綏 絛 綈 nankyoku 緓 Experience the silk ropes 綹 綣 complex bloomed 綰 Green 綴 緇 緙 緗 緘 Myanmar cables Tie 緲 Warrant 縕 繢 緦 綞 ribbons 緶 緱 縋 締 hamamelis 緡 縉 bondage 縟 縝 縗--縞 dogfight 縭 縊 縑 Clara 縹 Paying 纘 Opium web strike 羆 bohemian serotonin envy dead 翽 huei 耮 耬 towering 聶 deaf 聹 The wise 聵 the skin serious hyperinflation 朧 腖 臚 Shin rubber 膾 dirty belly brain 膿 臠 foot 腡 facial marinade popliteal cleft 膩 shy 膃 burn 臏 輿 艤 艫 艸 Art 羋 薌 蕪 aloe 蓯 葦 藶 莧 萇 flies ramie 檾 penis 蘢 蔦 塋 煢 cocoon negundo chard pods 蕘 蓽 and buckwheat vera 薺 葷 滎 犖 the 熒 蕕 Crystal Nightingale Finish 蘀 prime 縈 depression onion 蕆 蕢 蔣 蔞 Blue 薊 蘺 蕷 鎣 驀 薔 蘞 藺 藹 蘄 蘊 藪 magazine Erythrosin captive considerations 虯 蟣 Lobster 蠆 erosion ants 螞蟻 蠶 oyster 蜆 蠱 oyster 蟶 蟄 蛺 蟯 螄 蠐 Transformation 蝸 wax flies 蟈 cicadas Die 螻 gerrymandering 螿 蟎 蠨 provocative title patch lined 袞 襖 嫋 褘 sock attack 襏 outfit 襠 褌 褳 襝 pants 襇 褸 襤 繈 襴 See 覎 覓 覘 覬 覡 覿 覥 覦 覯 Hajj 覷 Contact 觴 觶 Prestige 讋 謄 design sounding acknowledge 訃 譏 訐 Let's talk to 訕 訖 training 訒 conceal 謳 詎 surprised Genesse 訛 and 訩 courts visit ironic tips assessment 詁 scams tell 詆 謅 詘 詔 詖 translator 詒 誆 Standard sa try 詿 poetry 詰 詼 honest 誅 詵 the 詬 interpret tricks to 詣 detailed 詫 諢 詡 譸 Commandments 誣 language Seonyu misleading 誥 Temptation 誨 誑 said recite eh please 諏 to read 諑 誹 class 諉 諛 who 諗 諂 forgive 諄 誶 talk about the sorority 諶 Mole fiction 諫 Harmony 謔 謁 諤 諭 諼 讒 advisor 諳 諺 Chi mystery 諞 She 謗 諡 Humility silence cautious 謾 謫 譾 absurd tantra 譖 譙 讕 recipe 譎 讞 condemnation 譫 讖 grains 豶 The Joan negative 貟 contribute the responsibility 謙賢 defeat accounts trafficking greedy awareness shopping storage consistent 貳 cheap 賁 貰 loan Trade 貺 Hubbard brings sepia 贄 Steve bribery 貲 賃 bribe 贐 賕 賑 賚 賒 齎 賅 salvation 贔 賙 賡 reparations 賧 wins 賵 贅 賻 賾 贗 win Yun donors 贍 贛 赬 趙 趲 躉 蹌 metatarsal 躒 practices tap 蹺 蹕 躚 躋 踴 躊 躓 躑 Car gin track Lingxuan 軑 軔 軛 wheel software bomber 軲 軻 axis 轤 軹 anecdote 軤 軫 轢 lightly 軺 download 軾 輊 vehicles 輈 輇 more 輅 Kiev 輦 輥 輞 輬 輟 輜 輳 radiation edit 轀 output 轡 轅 轄 輾 轆 轍 轔 resignation It's also a violation of the late 邇 逕 Jefferson 邐 Logic remote Tang 鄺 鄔 mail 鄒 鄴 the 郟 鄶 Cheng 鄆 酈 鄖 鄲 醞 醱 sauce 釅 釃 stuffed Draw 鑾 鏨 釓 yttrium 釗 pin polonium 釕 thorium 釺 釧 釩 fishing mendelevium 釹 accommodating 釵 鈃 tetrahydrate plutonium titanium dull money minutes Sodium 鋇 Gundam 鈑 鈐 keys Chin 鈞 tungsten Claws scandium francium the transmission 鈄 button Palladium 鈺 money 鉦 bleeder Cobalt 缽 鈳 鉕 plutonium Jinbo 鉞 diamond tetrachloride oxide 鉭 potassium 鈿 鈾 Iron Platinum 鑠 lead 鉚 tetrahydrate 鉉 鉈 鉍 re-configuration Dou 鉶 handcuffed rhodium 鉺 銪 鋏 鋣 鐃 銍 Bell aluminum 銱 銦 鎧 鍘 銖 銑 鋌 銩 銛 鏵 銓 鉿 銚 Chrome motto 錚 caesium 鉸 銥 spade 銃 鐋 butylaniline rubidium cast 鐒 cobblestone 鋙 錸 鋱 鏗 Lithium 鋥 鋃 鋟 鋦 actinium 錆 鍺 fault road ki 錁 錕 miyanach wide 錮 gong cylinders cone antony 鍁 錈 berkelium 錟 錠 key saw oleate 錙 imagery 鍈 鍇 鏘 strontium鍔 鍤 鍬 minutes forgings 鎪 鍠 鍰 鎄 plated magnesium 鏤箜 鎡 鏌 towns 鎛 鎘 鑷 鐫 鎳 neptunium 鎦 Hao pound 鎰 rongji bodyguards 鏜 鏍 鏰 鏞 Mirror 鏑 鏃 鏇 鏐 鐔 钁 鐐 鏷 鑥 鐓 鑭 鐠 鑹 鏹 鐙 鑊 beam 鐶 鐲 scythe ytterbium 鑔 鑣 鑞 鑲 long 閂 閆 閈 shut down broke Rinjita 闈 did nothing 閎 Minkang 閌 boring 閘 閨 闥 閩 閭 闓 valve loft 閡 options 鬮 閬 闍 threshold oxen-A--閶 alienation 閿 閽 閻 閼 makes 闌 闃 闠 wide 闋 闔 隉 crater Risk 雋 雛 讎 靂 fog 霽 mold 靄 beautiful quiet 靨 Hung 鞽 韉 韝 Vern firmware 韍 Korea 韙 韞 韜 Rhythmic top 頃 頇 頊 friend 頎 issue celebrate 頏 顱 Aleppo neck 頡 cheeks 頲 jaw 潁 熲 頦 頤 frequency 頮 頹 頷 頴 stand title 顒 palate Zhuanqiao color 顳 options Upside 顙 顥 undercooked trembling 顬 beguiles zygomatic flown 颭 颮 颯 Hurricane 颸 颼 颻 飀 driving driving 饗 饜 飣 hunger 飥 餳 飩 餼 cooking 飫 飭 Cookie 餑 餖 hungry 餒 餕 餜 餛 Filling Museum 餷 feedback 餶 餿 饞 饁 饃 餺 distillation 饈 饉 饅 饊 饌 饢 Macedonia Harness 馱 untamed Gucci TD 馹 connected Donkey 駔 Drive 駟 駙 駒 騶 stationed camel 駑 pilot City Taipei 駘 驍 scoid 駰 proud 驊 camel hackers mutual 驫 驪 騁 experience 騂 駿 shangqi 騍 騅 騌 驌 驂 騭 騤 harassment 騖 驁 騮 騫 騸 驃 騾 驄 驏 tianji 驦 驤 crossbone hip 髕 grey nightmare 魎 魛 魢 squid 魨 魴 魺 鮁 the 鮃 Shan the Chan 鱭鮫鮮鮺鯗鱘鯁鱺鰱鰹鯉鰣鰷鯀鯊鯇鮶鯽鯒鯖鯪鯕鯫鯡鯤鯧鯝鯢鯰鯛鯨鯵鯴鯔鱝鰈鰏鱨鯷鰮鰃鰓鱷鰍鰒鰉鰁鱂鯿鰠鼇鰭鰨鰥鰩鰟鰜鰳鰾鱈鱉鰻鰵鱅鰼鱖鱔鱗鱒鱯鱤鱧鱣鳥鳩雞鳶鳴鳲鷗鴉鶬鴇鴆鴣鶇鸕鴨鴞鴦鴒鴟鴝鴛鴬鴕鷥鷙鴯鴰鵂鴴鵃鴿鸞鴻鵐鵓鸝鵑鵠鵝鵒鷳鵜鵡鵲鶓鵪鶤鵯 Trampun 鵮 鶉 鶊 鵷 鷫 鶘 鶡 鶚 Uighurs 鶿 鶥 鶩 鷊 鷂 鶲 鶹 鶺 鷁 鶼 鶴 鷖 Shan 鷓 鷚 鷯 鷦 鷲 snipe 鷺 鸇 Eagle 鸌 鸏 鸛 鸘 鞀 Mole 齇 齏 gear 齔 齕 齗 齟 age Tel齙齖小王孖 齠 齜 齦 齬 齪 齲 齷 dragon 龔 龕 turtle The magazine to have a taste of 鬨 noodle awkward dry as ";
}
Public Function Gb2312_big5 ($STR) {
$str _t = ';
$len = strlen ($STR);
$a = 0;
while ($a < $len) {
if (Ord ($str {$a}) >=224 && ord ($str {$a}) <=239) {
if ($temp = Strpos ($this->utf8_gb2312, $str {$a}. $str {$a +1}. $str {$a +2}))!== false) {
$str _t. = $this->utf8_big5{$temp}. $this->utf8_big5{$temp +1}. $this->utf8_big5{$temp +2};
$a + 3;
Continue
}
}
$str _t. = $str {$a};
$a + 1;
}
return $STR _t;
}
Public Function big5_gb2312 ($STR) {
$str _t = ';
$len = strlen ($STR);
$a = 0;
while ($a < $len) {
if (Ord ($str {$a}) >=224 && ord ($str {$a}) <=239) {
if ($temp = Strpos ($this->utf8_big5, $str {$a}. $str {$a +1}. $str {$a +2}))!== false) {
$str _t. = $this->utf8_gb2312{$temp}. $this->utf8_gb2312{$temp +1}. $this->utf8_gb2312{$temp +2};
$a + 3;
Continue
}
}
$str _t. = $str {$a};
$a + 1;
}
return $STR _t;
}
}
This document runs on UTF8 encoding php100.com
Header ("content-type:text/html; Charset=utf-8 ");
$chinese = new Utf8_chinese;
A brief introduction to UTF8
$str = "Long live the People's Republic of China";
$str _big5 = $chinese->gb2312_big5 ($STR);
echo "Original: $str <br/>";
echo "Convert to Traditional: $str _big5 <br/>";
Brief introduction of UTF8 in internal propagation
$str = "The Age of the Chinese People's Republic";
$str _gb2312 = $chinese->big5_gb2312 ($STR);
echo "Original: $str <br/>";
echo "converted to simplified: $str _gb2312 <br/>";
?>

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.