Have looked for a JS version, but to the UTF8 code can not be used, so it produced a self-written idea. In fact, my implementation of this code is very simple, just a replacement character set process, I believe most people can write it out. The following is the code, do not know if there is a bug, if you have a problem with the use, can be proposed to
Copy the Code code as follows:
//
Class Utf8_chinese
{
Private $utf 8_gb2312;
Private $utf 8_big5;
Public Function __construct () {
$this->utf8_gb2312 = " Million and ugly professional Condons lost two strict footstep Fenglin for Li Lift, Yiwu Lecho Xi township book buy chaos in the loss Yunbia production MU pro-profane 亸 billion only from the LUN warehouse Miriam Price all the good guy will slouching the umbrella Wei transmission injury primitively LUN hasty making pseudo-queue body more than Qian after blast executioner friend Lennon Curie were Yan two li-yen debt dumping from hunchback liability compensation Huatang Champagne Reserve Nuo son and Yanzhou Party orchid Guanchenz breeding beast telling inside the gang book Write Army farm Mound Feng Burst condition frozen net desolate ling reduced together Rin A few chicken fu with Kai hit the Cotai Chisel Liu is just create delete planning manipulate executioner 刿 Kelly agent cut sword stripping play advised to do the work of the dynamic strength of the labor force of the fu-li-li-fu-fu-li-Fu-yi-li-yi-yao-fu-yi-Fu-yi-Fu-wei-fu-勚 Factory Hall calendar van operculum Xia kitchen stall County ginseng Mitsu Cloudy Sky double-hair change of the fold leaf number sigh after the Splendor ton listen to Kai Wu mmm raving vomit clicks Chant Kuai choke woo Xu throat barbs hiss Blackadder upbraid whinny Salt-a mute xiao beep yue wow 哙 someone worm yo mark Krŏng Lao FL suona Zao Call obeyed Tut sik Sik yuen Twitter bite 啴 Squealing spray Kuch hesitate say ah oh shh boingonium the ho the group Park Chimneys Wai zither country map round san Kuang field ban bad block jian Altar Lido Holiday Dam Dock Ridge Long Loessial base Ken Jiong Chalky Spain Dang Kaew Nao grandparents Xun Guo Nian Zengcuoan cut fell miao wall strong sound shell pot pitcher place to get the head of the clip won the Lian Huan Yu award Austrian makeup women flatter 妪 gui Shan ginger Lou ya Rao jiao molestation entertainment wa han beautiful baby chan ai wives ohauncey! Granny Sun Couxian Ningbao real spoil trial constitution Gongconbin Bed to guide life will dust Yao embarrassed Corpse layer target the annual Sandals Yu Rough hillock Xian ao Lan Island Ridge Shing 峃 Yi Gorge 嶢 Jiao Zheng Luan Lai lurking precipitous peak rong droning yu Lou Crest Gong Yuan Handsome Division draperies account curtain with frame help able prostituteses ms Elaine Power Bokdubong Dry and wide Zhangqingxian Wu library should be Temple Pang waste assisting Lin Open the Zhang Mixia Bend rebound strong return to record 彟 Yan-keng-Jing-yi Repentance worry denigration Huai State, bereavement allowance Bombay despair Dorian pity Total godless Yiwen love of Sorrow diseased Kay ce annoyed Yun Yue Harcourt exhausted Check Inn ashamed Shishi habitual pity get mad bland anger greatestãçöíbase willing to default have melancholy lazy awe daft constricted play closure war Jian family tie-in-the-eye sweep Yang disturbance and throw Tuan key LUN Rob guard paper to pick up and pull optional hang zhi-挜 Laos tart Cambridge earn squeeze swing inextricably fishing loss pick-up change according to twist slap throw dust mixed whipped shen range push mix put on the Wang swing off gumbo support kick out gust Somo save enemy convergence several Zhai LAN fight cut no old Shi Yang Tan day dawning show Jin Xiao ye Halo hui temporary heating Operation Park machine kill miscellaneous right bar to Yang Jinjie polar structure fir stable jian stretchers gun maple Owl Cabinet lime tamarisks the grid standard stack bar empress Building Wax Oak column tree habitat like Luan Portfolio, radial file Alder Bridge Birch Cypress paddle pile dream Yusuhara Cornus lattice coffin Casket 椠 Luo Oval building Lam 榇 Palmetto Beech Cashew Sill Penang Cross Qiang cherry enshrined cabinet oars Purlin Huanhuan minari European fighter Outworld Devourer ruin Meteor Funeral Satan funeral destroyed hub bi-yan felt 毵 氇 gas hydrogen argon Yun Hui Han sewage soup Feign ditch no Feng retting lek Bambu wei Shanghai You nim tears frame lu cyrtomium fortunei pour ze jing clean sprinkle jia shallow slurry pouring zhen yingde design turbidity test Kuai Liu Chanba muddy hu, Aenon tu flood flood Lai Ripple Weizhou Vortex Yun Huan Polyester run Jian Dian lu liling Guanyintang, Yu-shen infiltration of the sea-water permeability bay wet water splash Xushui loujin Shuofang Decanter Yan postcode the flood of Man luanhe 滪 Browse Ying in the wake of the Wei-yi Lan Seto hao out of the light ling disaster lian furnace Stew yang point smelting blazing candle smoke burning Braised hot ember Tao forge hu Skating love ye slips female yak lead sacrifice calf stubborn arrogance Mary Judah jackal roe Deer Qiumi caracal Lone narrow lion 狯 by prison ocelot 猃 hunt Babymiffy Luo Pig cat hedgehog offer Rex man halls Ma Wei Huan 玱 seal min Glamour dragon Matangi Hun Jin Lian Ai Xuan Ying peko urn ou electric painting chang Yu domain boils treatment malaria plague ulcer puffs sores drochs carbuncle spasm itch yahu tuberculosis body epileptic fetish hate shen Bury fistula paralytic addiction gall rash epilepsy approximately AI wrinkle popularity salt cover steal disk Àíàëèç Canthus dance open eyelid deceive visions The Dangshan pear Brick of the iron ore alum mineTouche Inkstone sulfone rough clunk Silicon Qiaoqi northrend stilts, the horrid horrible alkali Crown gun ritual 祎 you pray for the curse of Lu Zen from the bald stalk species accumulation called the Nongsa unconscious tax Jesus steady time poor stealing out of the kiln channeling nest peep sinus evils vertical competition Benedict Bamboo shoots Pen Jian cage 笾 build honouring sieve yundang zheng Celestial ze suitcase sheath luo songaksan Xiao Kui basket hedge Duan Lai buy class indica cleanliness where Guangdong dung food grits loris tight 絷 si correction red King Zhou Fiber 纥 about grade ceruse Texture Guiling helicopter vast pure pi yarn nano ren longitudinal lun paper Moire Limonene participates Xie departure practice Group Gentry fine weave End crepe trip ³ã The Yi by the binding velvet knot Վ around show quilting to the Xuan Jiang twisted administrative burnt silk embroidery 绤 sui sash ti results thread Aya 绬 continued Qi Fei fashionable can go rope-dimensional cotton shou stretch silk linghu Lock curled Wan green-called Ke network seal burma cable twips muons Rhythms multicolored maisi fusiform braided satin stitching bindings Let them slow-associative wisp festivities margin uncomplicated av slit 缞 stripe married constriction Jian bin Piaomiao screwdrivers tassel Miu Yi Valerian Sea among Zeng reins loving Felling noose pay anaemia poppy a snare pi phoenixes, Yuhui Motorola Columbine shrug shame nie deaf Job ning Lian astounding the intestinal skin loin kidney swelling threat gall bladder sheng Peptone lu Shin rubber vein tartare dirty umbilical brain pus diced feet off fingerprint· face wax marinated popliteal palate greasy mian 腽 teng patella dirty rigging ship cabin Hygiene difficult Yan 艹 Art Festival 芈 Sweet Wu Lu Tiger Reed descurainiae Amaranth Chang Cang zhuxi Su Ying stem reconciled Tsuta Ying Solitary cocoon of accomplish pod flexible cubeb buckwheat Club Camelina swing meat ying Luo fluorescent nettle invironment sun shade endive hongyexintong 荮 medicine Jiyeon oat lotus dill Lettuce Siegesbeckiae won the Caryopteris Ying Ying Ulva calculatingthecost luo ying Cissa onion Gochunyan 蒉 Shing thistle Hedges Yam hongying mo Qiang Cayratia 蔺蔼蕲 Yun Tau ligustilide Moss-bug Qiu caught although shrimp alighted eclipse ant ma silkworm oyster clam tricky oyster clam sting vanessa Oxantel conserved glaze shed wax flies guo Cicada scorpion being caged counter salamander 螀 mite 蟏 Peacemaker Title complement lining Nyaung Kokusai socks attack 袯 Mount crotch Fundoshi walks Irina pants Jacket tattered 襁 襕 See yingying gauge target View Cairns regional beautified Energies 觍 covet Gou kun qu Cheers touch bocal 詟 Goodwill Transcript dialect obituary Waterworld acial to let San San 讱 talk about Taboo ou ju surprise Xu Yu on the 讻 of irony set up a visit to the gu of the 诇 of the slander of the word scenery the 诐 of the Yi Shuenn con The of the poem and the Lei. Axmanovs the Sunfaith astonished jest Xu elaborate commandment framed language mockers false lure exaggeration said recite AH please Zhu Chino read Kerouac dis lesson shifted flattering who recite tune Chan forgive Zhun mang coverage talk about Yi 谌谍 lie scherzo to say Schrodinger Oracle dictated slander The truth mystery boaster Jinseo mo voluntarily Down Xie posthumous them exile brief false Tan Calumniate spectral deepness felon the Delirium prophecy Gubei Zhen negative Yun Gong Responsibility Yin lose the goods sellers greed poverty down purchase storage of the cheap name was to sell you Kuang loan trade fee He Hui thief zhi Jia bribery dearly rental bribery stolen capital gai Sona 赇 relief lai Credit bet download redemption reward Bibi alms Yupin compensate Danfo Lai 赗 predominated earn race study on pseudo-praise Yoon-jin give allowance win Gan Cheng Zhao to rge jump Stagger toe Gala practice Stroll Qiao Ghukasyan gracefully Atoda dance lift Catinaccio trace stumble hesitating nie mite temples leap plight Bounced car rolling rail Xuan dismantled the yoke wheel soft-bang paster ke hauler axis zhi anecdotes 轷 Chang vandal dims light Kingslayer distn sedan Zhou 辁 lu less sub-Hui roller Wang 辌 y Happy-series Yun transmission bridle shafts the braided edge of Liao Da moved to the far beyond the 迟迩迳 trace of the right to choose the bad Leonard Deng mail 邹邺邻 yu Xi Jia Kuai Zheng Yunyang did Wine together Ltd fermentor Bioreacter sauce Yan cyberpsychology brewing release nst kam Luan gadolinium yttrium needle nail zhao Plutonium ruthenium thorium brazing Kushiro Samarium Germanium vanadium fishing Mendelevium Neodymium Weller Chai features calcium plutonium titanium blunt banknote clock sodium barium steel sheet Qian key chin June tungsten Hook scandium francium holmium inclined Shang money Zheng Pliers Cobalt Bowl CB Promethium Plutonium Cymbal Yue drilling molybdenum tantalum potassium tin iron Platinum Bell treatments lead riveting cerium Hyun Thallium bismuth beryllium payload cuff rhodium erbium europium clip êàïèòàëà nao 铚 clang copper aluminum Diao indium armored guillotine Baht Milling collar thulium 铦 Hua Quan hafnium motozuki chromium Ming Zheng Cesium hinge iridium shovel blunderbuss 铴 ammonium Silver rubidium cast lawrencium Tsan rhenium terbium chain Keng pin lock lithium Shinetek hoe pot zirconium osmium rust file clearing front zinc matte californium Mace Rui Antimony end up bending their heads prostitution germanium fault anchor Richtek Kua 锟 tzang tin occluded gong hammer cone kam Shovel splendor berkelium Glory ingot key saw Manganese Zi Shan wedge Jinyoung KaiClang strontium Zhuangchai Its utensils spade chung forging sou jih fines einsteinium Magnesium Router Tzu HSW town bo cd tweezers engraved nickel neptunium lutetium pickaxe pound Yi Rong dart boring screws Coins yung Mirror dysprosium arrowheads lathe 镠 tan 镢 handcuffs protactinium lutetium upsetting lanthanum praseodymium 镩 their careless disposal stirrup wok radium plutonium bangle sickle-cymbals bodyguard Foundry set the long latch Flash Yan 闬 closed asked carrying busy Hong Han between Min stuffy gate noisy Kinari valve Pavilion Kai cut off from lot read conversation Langfeng threshold Castrate Jayavarman VII Street neighboring character Eris Learn doorkeeper interpretation of 阎阏 shimmering, tie down 阘, Yang Yin Array 阙阚阛 Xing Shan Kuznetsk meteorite risk with the hidden Li-June difficult young Chou Gimli fog Ji mold margaret beautiful static dimple, Joe Haiyun Fuigo Weshing Han Tao Yun page top is dwellings item shun Xu stubborn Gutton qi Ode Oh pre-skull neck jie cheek yiting jaw 颎 chin Yi frequency 颒 depressed chin 颕 Ying Yong jaw zhuan Yan forehead temporal banister The Hao categories fibrillation 颥 frown zygomatic wind Antonacci blown squall sa Hurricane breeze The Go 飠 the wind flies to indulge 饤 hunger Hoto táng Chaos 饩 'm cooking obi supervised rice drink preserves full feed 饳 starch syrup bait rates eats mung gezha Dumplings 饻 cake athlete 饾 Hungry hungry 馂 luozi ascertain stuffing Hall Zha feed 馉 rancid greedy 馌 steamed stewing distillation famine steamed bread hinterland Cuisine naan Horse taming whizzing 驲 barge donkey Zang Drive Xiaosi Consort Colt Zou Camel rob a crossbow driving station Aweary scold Houyhnhnms arrogant Hua 骆骇骈 horse Baodingshi bisecting June qi Ride close Zhui 骔 su can cheat stallion 骙 Sao Wu ao Liu Qian gelding bijin Mule Lam 骣 Sudden Lake Shuang prance crossbones hip patellar sideburns dire pixy fish 鱽 girella squid puffer Lu Ying threadfin flounder catfish scorpionfish 鲊 funachu ilishaeformis Bao mackerel Jieqitingji Ophiodon tuna Hou Kuai ectenes mackerel 鲝 svm sturgeon choke tangs silver bonito carp shad minnows gun shark grass carp fuscescens crucian carp 鲬 mackerel Rohu dolphin minnows herring kun pompano xenocypris salamander catfish Snapper whale trevally hamachi mullet halibut bat bagrid anchovy sei 鳂 Gill crocodile Leiognathi huso 鳈 killifish bream cyprinacae fin sole widowed ray Rhodeus 鳒 shad bladder cod turtle eel obtusiloba bighead 鳛 siniperca chuatsi eel trout mystus elopichthys bambusa snakehead 鳣 Bird Dove Chicken iris 鸤 Gull Crow 鸧 bustard Poison COO Thrush lu Niao Duck Owl Duck Wagtails Council Wilson Robins Yuan 鸴 camel Luen Prey Emu cawing Taker Plover 鸼 pigeon Luan Bunting bo Blackbird cuckoo hu goose 鹆 swinhoe Cormorant Mukawa Magpie Sian Kun bulbul peng 鹐 quail 鹒 Western 鹔 irradiation book Osprey Uighur Luzi Laughingthrush mo 鹝 Harrier Flycatcher descending wagtail 鹢 affectionate crane 鹥 Parrot Partridge Pipit wrens Wren Eagle Snipe 鹯 Eagle Shearwater 鹲 Stork 鹴 rash Bran Huang 黩 黪 Strider shelled 鼌 alligator melikyan echidna 齄 qi ji teeth ageing 龁 龂 irregular age buck nightmares grin gum rancour looser caries wo dragon gong niches Turtle zhi system of the Fan Song did not taste the scene quasi-clock do not idle dry all dirty spell ";
$this->utf8_big5 = " With ugly professional jungle, I lost two severe valves to the Great War on the Thanks Cloud mutual benefit, acre, obscenities 嚲 Yi Rurunrun, 傴 umbrella, the Polo and the great, the great, the great and the beautiful accident London nin maid 僉 Batman partners amongst reconnaissance side Beyo snobbish peers 謝醒儂 俁 儔 He synchronicity Shihda Thrifty debt propensity 傯 rickets 僨 compensated 儻 hime save Hanzi confirmed Yeon party about the 囅 in Fukuoka, in the register of the army, Feng, awful, Minatomachi River A few 鳧 procured è regurgitate plan lau just deleted 剗 剄 劊 劌 剴 dose 剮 Sword: 'd drama advise dispose motivation unmotivated Labor medal 勩 Northern scarcity District medical unit sold in 鹵, 巹 factory calendar, official WC, and so on. Compartments 厴 manger ain't County 靉 靆 Dual-change of the Syrian Marvel chattering calls for the scare lui Che woo? 唚 ton listened to Wu 嘸 囈 vomit 嚦 bibai guol back oooo wing 哢 throat dingning fatalities upbraid 噅 Salt mute 噠 嘵 beep 噦 wooh 噲 嚌 噥 yo Garment 嗊 Nagging Christ Suona Black call amazed xianse 囀 notable Hello 嘽 tsunami spray cola 嚳 囁 ho brainteasers shh! 嚶 Testament avaoliket hack arrogance known park chimneys around 圇 National San 壙 field Hankyu block stick altar Zhongli Dams Hollywood Cemetery falling monopolistic monopolistic 壚 softball kenting vicinage 堊 mattress jiaoziya 墶 壋 塏 堖 塒 塤 堝 mattress an nei 竹塹社 abortion 壪 wall sounds shell pot teapot is ready to be a very, very, artists incredible, and a couple of moments glad Grace Keiseikanamachi 媯 Jane Ginger bellow Yulia Establishment, club cubic pederasty Entertainment 媧 hanzi 嫿 baby singapore Aunts 媼 Love example 嬙 Grandma Sampathkumar University 孿 the Pet Palace of the bedtime dust Emmanuel awkwardness corpse of deities Drawer Academy robust 屨 wouldn't terrain Island Mound Da Nang 嶴 岚忻 Davis Pok Rokkei 崠 巋 嶨 嶧 Canyon 嶢 Select Imperial 崢 Severn 嶗 崍 嶮 Brand Ridge 嶸 cuiwenqin islandd 嶁 teacher tops account strengthening mercaptopyrimidine take frame help 幬 competent recognising emerges 襆 stem and Canton Bailu 廡 Library Temple Bond City 廩 open up Praya 弳 bend the 彠 Kōmura The Leica the memory confession worries 愾 the 慫 憮 慪 disappointment compromised poor disaffection 懌 agnostic evil 慟 Go Doing mixed worries complimenting Joy Younggak sowing 慳 mercy surprise dire appropiate tired boasted ashamed dreaded accustomed San surged anger 憒 wish deterrent žå scared 懣 lazy 懍 idiot 戔 game 戧 戩 put down poker 扡 ask yourself whether calmed sweep disturb 摶 abandon copied stall hog alongside protection report chosen suspend embrace screwed flick hang sincere 攣 掗 Laos à gimps harass retainer 撟 struggling crowded finish anotherjob pick pounding twist captured 摑 sidearm Shan blended 摜 摣 recruited name guarantees for stranded held stirring carrying 攄, 擯 Booth range scumbags captured enemy milk 攛 administration fight 攢 Time Kuang Yuang Cloudy daylight THROAT obviously Kuching herbs Hyo 曄 Dizzy FAI temporary TEM byronin The rustic machine kill the copyright Yang 榪 Jake structure Some stately fir centrum-櫪 梘 dealings gun Maple bossconn cabinet lemon 檉 梔 fences Mark Kushida 櫳 Nicholas Koroen 櫟 linked fields tree habitat like message â#̈ã branches 橈 ligustrum file 榿 bridge Fanuc Cypress paddle stake dream 檮 Crypto inspection 欞 porosity 櫝 槧 down elliptical orbits 櫬 Beech 檟 threshold Champagne 櫧 horizontal 檣 sakura 櫫 closet à citrate Ladbrokes 檁 歟 European destroyers Europe 殤 brutal meteorite hurtled 殫 funeral punch destroyed hub after shot felt administered 氌 gas hydrogen argon 氳 Choppy chow communication does not 灃 漚 asphalt boundary 滄州市 Bambu 溈 S 濔 dirt Tears lifts 瀧 瀘州市 濼 瀉肚 spill jersey zhonghong Cleansing sprinkled Miyakubo 浹 shallow syrup watering 湞 溮 conjugation measured 澮 滻 awful 滸 Stables 濜 Wentao, 澇 Lago, Ripples concurred swirl 溳 渙 washing as marinade utter 澠 fishing shenyang infiltration Taiwan wet bulb splash 漵 yunn 潷 roll Aloft waves management full natdanaic discard abuses pedestrians beach 澦 abuses Alwin Omoka 瀲 Nanhuan potential urinary Guanlan Seto Sakaemachi endangered almin Extinction light hotel sunroute 煬 Stove Cocido Wai 熗 point Alchemy Chee flashing rotten alkanes candles smoke trouble Sunson Ragout boiling Ashes hot Longoza braised his calcinations paste love Grandpa rich yaks towed sacrifices bullpup strong 獷 獁 Jewish stumble 麅 獮 獰 unique narrowness Lion cunning 猙 prison 猻 獫 Hunter Macaque 玀 pork cat hedgehog otter Breguet 璵 Yang pepince 瑲 longxi 瑉 Bandits 琺 Qianyao life varasittikorn maya 瓚 urn Gold painting few laps di she categories 癤 therapy malarial logging part 鬁 piles mad blisters 屙 癰 reduces itch minimal hanzi paralyzed SME going crazy 癉 瘮 瘞 SARS message Emotionally addiction 癭 癩 archive Britain 臒 backup wrinkled 皸 beacon Salt surveillance Pirate 瞘 眥 矓 opened graces eyelids cheat cinder Bulb Pacifier Angeles 礬 mineral 碭 code Brick 硨 YangmingshanSulfoxide sharpen 礱 Hanja Foundation 硜 Silicon Masters Kip 磽 磑 礄 true alkaline disorder ozeki 磣 alkali lathe Roll gift fan You Joung prayer accidents approval Pauline Zen bald efficiency out Covac 穭 tax Jesus stable saekdal poor theft tricks kiln break nest glimpse Sinus 窶 erector spinae Athletics Stoke shoot pen 筧 箋 cage 籩 篳 screening APNC Kite organising sign simple 籙 簀 篋 籜 籮 簞 簫 showcasing 簍 basket fences 籪 Celestial 糴 category tranches autopilot 糲 Cantonese Dung Dept 糝 餱 縶 correcting 紆 Red 紂 fiber Shadow class It are required century sewing repaying vast chimes Yarn Synopsis Ionizing 紖 Newark Alleviate line Konya Code 紱 training JP Organization finally 縐 Bond 紼 絀 introduction become 紿 Kidnapped Velveteen end page around Virgin Quilted draw florid Xinjiang winch 綆 remote adj Silk embroidery navigation Tuy HOA Cestoda Betty results Ayase 緓 continued Yee Scarlet Dolcevita 緔 swashplate offenders sponge exedy tightness silky ropes seductively 綣 ci rainbow love 綰 Green able deadline 緙 緗 Bite Sacramento Accord Artemis illusory warrant 縕 繢 緦 綞 Satin 緶 Line 緱 incurred parties Hamamelis 緡 John the bondage 縟 縝 sewing 縗 縞 tangles work 縭 speed 縑 Clara illusory Amanzoe 縲 纓 Samuel, Silk reeling Valerian dizzying renovation 繒 reins 繾 繰 繯 Hkgalbert 纘 Opium net punishment strikes loan tame hydroxypropyl methacrylate Envy dead 翽 huei 耮 耬 towering nien deaf 聹 聵 smart Hanzi gut skin zorro kidney swelling hyperinflationary threat looming 腖 臚 Shin rubber pulse namasu dirty belly brain abscesses 臠 foot 腡 facial roast marinade popliteal cleft blockages hdd 膃 totem 臏 Triphenylformazan discussion 艤 battleship 艫 grueling canary 艸 art 羋 薌 above Aloe 蓯 endeavor 藶 莧 萇 Hitomi ramie Soviet 檾 Apple penis 蘢 tsutaya 塋 煢 cocoon Negundo recommended chard pod technology 蓽 shallots Vera 薺 蕩 Utilization tay excised fluorescence 蕁 藎 ningsun shade 蕒 葒 葤 pharmacy coming 蓧 Raleigh Makie 萵 薟 Gain 蕕 leytoneric Fullon sanyin finish 蘀 turnip linger siu onions 蕆 蕢 jing 蔞 artichokes 蘺 opposita 鎣 驀 at 蘞 藺 藹 蘄 pendant in considering Worms Oyabu following behalf although Erythrosin captive 虯 damage krill 蠆 oyster eclipses ants 螞蟻 a corbicula propaganda oysters 蟶 somewhat 驚蟄 蛺 蟯 螄 蠐 Transformation cicadas account 螻 gerrymandering 螿 mite 蠨 provocative titles supplement lined founded Fusuma 嫋 Avanthi sock attack 襏 outfit crotch 褌 褳 authorities pants 襇 Gogeta 襤 繈 scantily see 覎 specs foraging 覘 phi 覡 覿 覥 Covet 覯 Hajj drove ordained touch 觶 讋 reputation ESO sounding design obituaries CANopen Talk to 訕 訖 training message nuisances conceal 謳 詎 surprise Genesse blackmail theory alcohol litigation ironic visit sincerity Certification 詁 Quijote review Cursed 詗 scams to diagnose consensual scholarly words 詘 by 詖 translations 詒 IIe standard sa try 詿 Poetry 詰mekae witty 誅 詵 Tseung interpret details surprised messing 詡 譸 Commandments 誣 words seonyu 誥 lure depiction 誑 say chant please eh sass Suwa 諑 Lesson lessons contact who cringes inside forgive 諂 IPMI talk about 誶 諶 Lie mole creator harmony known 謁 諤 諭 諼 讒 consultation Cate Proverbs di mystery 諞 諝 Rawalakot Thank Rumors 謗 citation 謙賢 silence kan 謾 謫 譾 absurdity tan 譖 譙 淀粉质 recipe 譎 affirmed condemnatory 譫 讖 Corn 豶 Bay Jung 貟 financial responsibility Yin defeat mega quality sellers greedy poorer descended purchase lagoon consistent Daini cheap 賁 貰 Kuangyu loaned Trade brings thief 贄 Steve bribery 貲 rentals Bribery hostage resources 賅 贐 賕 air 賚 tick talent gambling 齎 atonement reward 贔 alms 賡 Sue 賧 dependent 賵 baggage 賻 tournament 賾 贗 Yun giveaway 贍 statue win 赬 Zhao 趲 poor 蹌 metatarsal 躒 practices tart warped 蹕 躚 Estate participative waver happens 躑 躡 tracking confessing 躕 躥 torn 躦 torso Car gin Orbit Xuan 軑 Genesis turn yoke software bomber 軲 軻 轤 axis 軹 anecdote 軤 軫 轢 軺 light 軾 download 輊 sedan 輈 輇 輅 craftsmanship Kiev Surin My life FAI nip Rim 輬 輟 輜 輳 irradiating Edit our 轡 轅 jurisdictions could reel deal 轔 resignation argued Flowers Liao climate and this is still a very, very late 邇 drive, bounds logically, Tang 鄺 鄔 mail Mr. Zou 鄴, but 郟 moreshow 鄭 鄆 酈 鄖 邯鄲市 eradicated herbal sauce 釅 釃 stuffed Explain the draw Luen 鏨 gadolinium yttrium pin nail 李大釗 metalloids ruthenium thorium brazing Bruno 釤 鈒 Bangtong fishing mendelevium Neodymium å iden 鈃 calcium plutonium titanium dull money Chung sodium diacetate steel gun 鈐 keys Kitchener Nick Tungsten Claws scandium francium echnical 鈄 button Palladium Yu Money fragmented fangs Cobalt mortar 鈳 element plutonium Bo Etsuo diamond tetrachloride oxide tantalum potassium 鈿 uranium Platinum, surviving pencil riveting tetrahydrate sik 鉈 bismuth beryllium Godwin 鉶 handcuffed rhodium EDFAs europium 鋏 鋣 鐃 銍 Bell copper aluminum 銱 indium Hanja  THB edged desperate being checkpoints Edmund Xinquan hafnium 銚 Chromium motto 錚 caesium hinge Iridium Spade bayonets 鐋 (tetrahydrate silver rubidium cast 鐒 frontage 鋙 rhenium terbium chain 鏗 lock Lithium 鋥 She pot 鋯 鋨 Rusty file 鋝 Vanguard Zinc 鋶 鐦 Bnhi sharp Diantimony 鋃 Huo 鋦 actinium 錆びます germanium wrong anchors Ki 錁 錕 miyanach Siena froze gong weights Erlenmeyer flask Cam 鍁 錈 berkelium 錟 spindles Keys saw Mangan 錙 å›žå¤ 鍈 蔡廷鍇 Yongqiang StrontiumAnimals 鍤 Haft Chung steel forgings 鎪 Huang 鍰 鎄 plated magnesium 鏤箜you contra motai town 鎛 cadmium à å isotopes neptunium plating pickaxes pound Kuang Rongji sainted boring æ 鏰 cho mirror guard ã Choy Kau 鐔 event 鐐 isomer lutetium 鐓 鑭 鐠 鑹 鏹 鐙 Wok beam 鐶 bracelets scythe ytterbium 鑔 separated pewter set long door 閂 Blink 閆 閈 Close asked broke Rinjita 闈 casual his eun 閌 boring shutter stop! Bedroom wen Rashtrakuta hokkien post 闓 valve barriers é 鬮 read 閬 Acharya thresholds oxen 閶 alienation downloading pen Liben 閼 makes appendicitis radiation 闠 width 闋 closed khotanese 闒 que 闞 闤 team Sunset International 隴 Chan 陘 Shaanxi 隉 scientist Adventure with stealth new 菢雛之窩 讎 Perak cloudy 霽 mold 靄 Beautiful nightmares paladiknight 鞽 韉 Enumeration The firmware 韍 Korea behind 韞 Frotivoti Wan Leng page top hectares 頇 item 頊 Naughty Care 頎 Proceed awards Kwan 頏 preset cranial leader undesired décolleté Chiachieh Cheeks 頲 Maxillofacial 潁 熲 SCO detected video 頮 頹 accepted subject stand topics 顒 palate zhuanqiao temporal options upside 顙 Jinhao undercooked trembling wind 顬 beguiles zygomatic flown 颭 squalls 颯 Hurricane Bree 颼 颻 飠 flight fluttering outlaw outlaw Epicurissimo 饜 飣 hunger nabe 餳 飩 餼 Hotel cookery 飫 飭 餞 Saturated dietary Cookie 餑 餖 hungry discouraged 餕 餜 餛 Pies Museum 餷 feedback Unhygienic breakfast 饞 饁 used nabe distillation 饈 饉 饅 饊 Culinary saturated Macedonian merquise Sendagaya tame Gucci 馹 Mahaina donkey 駔 driving 駟 Princess Capsule Inn 騶 Consulate in camels 駑 pilot Cityinn 駘 Saver scoid 駰 proud at camel hackers mutual 驫 驪 Battlefield experience 騂 駸 Tsun Shangqi Knight 騍 騅 騌 驌 驂 cheat 騭 騤 harassment 騖 驁 馬騮搣 騫 騸 驃 騾 驄 驏 tianji 驦 驤 poison hip arthroscopy grey nightmare 魎 魛 fish 魢 cuttle filefish flying 魺 鮁 turbot Shan perch stonefish (Hamazushi 鮒 Basilewsky Bob 鱟 pangpi 鮐 salmon 鮚 鮳 tuna 鮞 Tong 鮜 Quarry Yoshikazu 鱭 kisame 鮺 鯗 sturgeon 鯁 kingfish 鰱 鰹 delivering 鰣 鰷 鯀 Sharks 鯇 鮶 Way 鯒 鯖 鯪 鯕 鯫 herring 鯤 Pomfret Oshima 鯢 Shan 鯛 whale trevallies 鯴 saurida Manta Pleuronectidae 鰏 She anchovyfor 鰮 鰃 Gills crocodile fusca 鰒 鰉 鰁 medaka 鯿 鰠 BFA fin 鰨 brood 鰩 鰟 鰜 鰳 鰾 cod roots eel 鰵 鱅 鰼 chrysanthemum eel scales Ohrid guttatus appreciate Channa 鱣 birds dove chickens iris/Buruciato resonance 鳲 seagulls Raven 鶬 鴇 鴆 was psychotropic 鸕 Duck owl Brede Ling true 鴝 鴛 鴬 Ostrich egret 鷙 鴯 鴰 鵂 plovers 鵃 pigeons 鸞 hung throated 鵓 Ivolginsky Azalea Swan Swan 鵒 鷳 Ukai parrots choquette 鶓 Quail 鶤 Bulbul Pang 鵮 quail 鶊 鵷 鷫 Pelican 鶡 鶚 Uighurs freshwater 鶥 clamoring 鷊 鷂 Flycatcher 鶹 wagtails trinal under Tsurumi 鷖 parrots 鷓 鷚 鷯 鷦 Buzzard Snipe Grand Coloane 鸇 Eagle 鸌 鸏 Flamingos 鸘 鹺 Mike Gluten 黌 neutralised 黷 黲 黽 黿 鼂 鼉 鞀 Mole 齇 齏 gear 齔 齕 齗 pronounce age tel齙齖小王孖you 齠 齜 abscesses 齟齬 willing 齲 are dragon 龔 Kamidana Turtle Magazine It is easy to try Kachidoki Noodle awkward in a leisurely and dry ";
}
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;
Simple Transfer in UTF8
$str = "Long live the People's Republic of China";
$str _big5 = $chinese->gb2312_big5 ($STR);
echo "Original: $str
";
echo "converted to traditional: $str _big5
";
UTF8 in a simple
$str = "The People's Republic of China";
$str _gb2312 = $chinese->big5_gb2312 ($STR);
echo "Original: $str
";
echo "converted to simplified: $str _gb2312
" ;
?>
The above describes the simplified conversion UTF8 code within the simplified conversion of the PHP class, including the content of the simplified conversion, I hope that the PHP tutorial interested in a friend helpful.