[Ruby ]Iconv :: 2009/02/16 03:31

Ruby에도 물론 Iconv 라는 charset을 변경하는 함수가 존재한다.

보통

# module 선언
require 'iconv'

...

# EUC-KR을 UTF-8로 변환하기 위한 선언
conv = Iconv.new('UTF-8', 'EUC-KR')

#Convert 'document'
converted = conv.iconv(document)

식으로 많이 사용한다.

하나의 예제일 뿐이고 사용법은 다양하다.

Iconv.conv('변경할 charset','변경전 charset','단어') 이런식이다.


참고로 주의할점은 변경할 charset으로 문자열 처리가 안될때 에러가 발생한다.

따라서,

#EUC-KR을 UTF-8로 변환하기 위한 선언
conv = Iconv.new('UTF-8//IGNORE', 'EUC-KR')

와 같이 //IGNORE를 붙여주면, 바꾸지 못할 문자는 무시하기 때문에

일단 에러는 피할 수 있다.

2009/02/16 03:31 2009/02/16 03:31
Trackback Address :: http://www.dreamzinn.pe.kr/tc/trackback/13
  • Tadalafil.

    Tracked from Tadalafil. | 2010/06/09 10:40 | DEL

    Buy tadalafil. Stamina rx tadalafil. Tadalafil fedex. Tadalafil fedez. Tadalafil. Tadalafil vs. viagra.

  • Cheap soma.

    Tracked from Soma. | 2010/06/10 13:10 | DEL

    Soma waterbed sheets. Soma. Buy soma. Buy soma online. Soma drug. Drug soma. Soma on line. Soma watson brand. Side effects of soma.

  • Oxycontin.

    Tracked from Oxycontin. | 2010/06/11 19:30 | DEL

    Oxycontin side effects. How is oxycontin made. Oxycontin. Oxycontin pdr.

  • Vicodin.

    Tracked from Buy vicodin online. | 2010/06/12 13:43 | DEL

    Effects of vicodin. Vicodin at overseas pharmacies. Vicodin consultation. Vicodin withdrawal.

  • Lorazepam.

    Tracked from Lorazepam. | 2010/06/13 18:53 | DEL

    Lorazepam. Lorazepam ativan information and resources. Buy lorazepam. Ativan lorazepam.

  • Oxycodone cr side effects.

    Tracked from Oxycodone. | 2010/06/14 03:35 | DEL

    Oxycodone website. Oxycodone extraction 93. Farmacias oxycodone. Oxycodone have side effects. Oxycodone stomach problems. Oxycodone online without a prescription. Online pharmacy oxycodone. Oxycodone.

  • Fioricet online.

    Tracked from Fioricet. | 2010/06/14 09:26 | DEL

    Generic fioricet low prices amp fast delivery. Fioricet. Fioricet 120. Cheapest fioricet.

  • Buy codeine.

    Tracked from Somas do they have codeine in them. | 2010/06/14 11:05 | DEL

    Codeine cough syrup. How long does codeine stay in your system. Codeine online. Tylenol with codeine. Cheap codeine no prescription. What class of narcotics is codeine.

  • Cialis.

    Tracked from 3gp young size bbs -cialis -gay. | 2010/06/14 23:42 | DEL

    Metaprolol cialis. Taking viagra with cialis. Purchase cialis. Generic cialis pay by money order. Cialis best price buy online. Cialis.

  • Buy ephedra.

    Tracked from Buy ephedra. | 2010/06/15 03:24 | DEL

    Buy ephedra. Buy ephedra online drugstores yellow swarms. Pure ephedra buy online cheap. Where to buy ephedra. Buy ephedra online.

  • Carisoprodol phentermine yellow.

    Tracked from Carisoprodol. | 2010/06/17 10:39 | DEL

    Buying carisoprodol. Somas with carisoprodol doese t containt codine. What is carisoprodol. Carisoprodol phentermine yellow all on one site. Carisoprodol. Pharmacy online carisoprodol description price. Carisoprodol use in dogs.

  • Carisoprodol toxicity.

    Tracked from Buying carisoprodol. | 2010/06/18 14:05 | DEL

    Buy carisoprodol online lowest price guarantee. Carisoprodol side effects. Carisoprodol abuse. Carisoprodol 350mg patient information. Carisoprodol mg. Carisoprodol.

  • Free handjob stories.

    Tracked from Gay handjob. | 2010/06/19 04:15 | DEL

    Hetero handjob. Handjob. Free handjob movies. Bobco and handjob forum. How to give a handjob. Handjob review.

  • Phentermine no prescription.

    Tracked from Phentermine blue. | 2010/06/19 12:52 | DEL

    Buy phentermine. Phentermine. Xenical hgh phentermine quit smoking detox. Phentermine side effects. Buy cheap phentermine online. Buy cheap phentermine. Free phentermine.

  • Buy viagra.

    Tracked from Buy viagra. | 2010/06/19 15:36 | DEL

    Viagra sample. Generic viagra. Female viagra. Buy viagra online. Cheap viagra. Viagra.

  • Xanax.

    Tracked from Xanax. | 2010/06/20 13:29 | DEL

    Buy xanax. Xanax xr. Side effects of drug xanax. Order xanax online. Buy cheap xanax. Discount xanax.

  • Vicodin.

    Tracked from Vicodin. | 2010/06/21 04:28 | DEL

    Vicodin online. Prescriptions drugs pharmacy online vicodin.

  • Vicodin.

    Tracked from Buy vicodin without a prescription. | 2010/06/21 19:22 | DEL

    Buy vicodin without prescription. Vicodin. Information about vicodin. Buy vicodin online. Vicodin detox. Symptoms vicodin addiction. Vicodin withdrawal.

  • Using levitra for eczema..

    Tracked from Levitra. | 2010/06/22 09:57 | DEL

    Levitra.. Comment levitra. Levitra side effects. Levitra testimonials. What is the correct dosage for levitra. Levitra.

  • Generic fioricet.

    Tracked from Fioricet. | 2010/06/22 20:35 | DEL

    Fioricet with codeine side effects. Fioricet. Buy fioricet weight loss. Generic fioricet. Fioricet with codiene. Cheap fioricet. Fioricet cod.

  • Zolpidem.

    Tracked from Zolpidem. | 2010/06/22 21:11 | DEL

    Zolpidem tartrate. Zolpidem tartrate international pharmacies. Zolpidem aphasia. Zolpidem winthrop. Zolpidem tartrate 10mg.

  • Phentermine.

    Tracked from Cheap phentermine. | 2010/06/22 21:49 | DEL

    Phentermine. Phentermine prescription online. Phentermine cod. Discount phentermine. Drug phentermine. Phentermine 37.5. Cheap phentermine.

  • Lortab online.

    Tracked from Lortab. | 2010/06/24 09:45 | DEL

    Lortab online. Watson lortab 10. Lortab. Buy lortab outside of usa. Lortab medication. Buy lortab in our online pharmacies.

  • Snort adderall xr.

    Tracked from Adderall abuse. | 2010/06/24 11:12 | DEL

    Adderall idiopathic edema. Adderall xr side effects. Buy adderall. Adderall and kidney pain. Dosage and tolerance to adderall. Adderall. Adderall online pharmacy.

  • Online viagra.

    Tracked from Viagra. | 2010/06/24 12:11 | DEL

    Viagra. Get viagra. Viagra canada. Viagra online. Generic viagra. Is viagra soft tabs better. Natural viagra. Buy viagra. Buy viagra uk.

  • Oxycodone.

    Tracked from 80 mg oxycodone. | 2010/06/24 21:57 | DEL

    Oxycodone breastfeeding. Delirium elderly oxycodone. Sinemet oxycodone. Oxycodone and breastmilk.

  • Oxycodone online.

    Tracked from Oxycodone. | 2010/06/25 10:03 | DEL

    Hyrocodone oxycodone. Compare and contrast percocet and oxycodone apap. Oxycodone. Oxycodone how long in system.

  • Vicodin.

    Tracked from Vicodin. | 2010/06/25 10:13 | DEL

    Vicodin. Buy vicodin without a prescription. Vicodin detox.

  • Vicodin es.

    Tracked from Vicodin. | 2010/06/25 21:51 | DEL

    Buy vicodin. Vicodin. Buy vicodin online no prescription. Order vicodin. Vicodin es. Buying vicodin.

  • Generic ambien.

    Tracked from Ambien. | 2010/06/26 15:40 | DEL

    Employment drug test ambien. Ambien abuse. Ambien online. Ambien overnight. Ambien online viagra. Discount ambien. Ambien hallucinations dizziness. Buy ambien.

  • Viagra.

    Tracked from Order viagra. | 2010/06/27 02:34 | DEL

    Viagra vs cialis. Viagra side effects. Viagra attorneys.

  • Incest sex.

    Tracked from Taboo incest forum. | 2010/06/27 12:38 | DEL

    Incest stories. Incest mother. Free incest photos. Free incest sex stories. Incest porn. Free incest stories.

  • Zolpidem tartrate.

    Tracked from Zolpidem. | 2010/06/28 00:23 | DEL

    Zolpidem eszopiclone indications. Cheap zolpidem persriptions. Zolpidem dosing. Zolpidem.

  • Online phentermine.

    Tracked from Online phentermine. | 2010/06/28 20:16 | DEL

    Order phentermine online. Phentermine online. Online phentermine. Lowest online phentermine price. Lowes t online phentermine price. Phentermine with online prescription. Order phentermine phentermine online.

  • Vicodin.

    Tracked from Vicodin. | 2010/06/28 21:09 | DEL

    Effects of vicodin. Vicodin at overseas pharmacies. Vicodin.

  • Effects of vicodin.

    Tracked from Vicodin statistics. | 2010/06/29 21:06 | DEL

    Vicodin military urinalysis. What is vicodin. Vicodin. Buy vicodin no prescription. How to make vicodin. Pharmacy online no prescription vicodin. Vicodin detox vicodin.

  • Percocet.

    Tracked from Percocet. | 2010/06/30 06:26 | DEL

    Percocet 93-490. Percocet. Adrenaline levels after percocet. Percocet dependency. Percocet side effects. Benefits of percocet.

  • Vicodin.

    Tracked from Vicodin addiction. | 2010/07/01 07:11 | DEL

    Buy vicodin online without prescription. Buy vicodin online. Buy vicodin. Vicodin. Vicodin buy mastercard.

  • Diflucan.

    Tracked from Diflucan rebate. | 2010/07/04 06:55 | DEL

    Diflucan side effects. Diflucan and pregnancy. Diflucan. Diflucan 200 mg. Diflucan to treat lyme disease.

  • Cialis.

    Tracked from Cialis. | 2010/07/05 07:04 | DEL

    Buy cialis. Cialis best price buy online. Cialis attorneys. Blood pressure cialis tadalafil. Cialis side effects. Cialis.

  • Cialis vs viagra.

    Tracked from Cialis. | 2010/07/07 09:19 | DEL

    Buy cialis. Cialis best price buy online. Taking viagra with cialis. Cialis.

  • Percocet.

    Tracked from Percocet. | 2010/07/08 08:56 | DEL

    Buy percocet. Will percocet show up in a drug test. Does percocet work. Dosages for percocet. Percocet.

  • Cialis.

    Tracked from Cialis. | 2010/07/08 20:06 | DEL

    Cialis drug. Cialis drug contraindications. Cialis. Cialis attorneys. Will cialis make my flaccid length longer.

  • Cheap airfare.

    Tracked from Cheap airfare to orlando. | 2010/07/09 08:36 | DEL

    Cheap airfare to las vegas. First class cheap business class airfare. First class cheap first class airfare. Cheap airfare. First class cheap international airfare.

  • Adderall.

    Tracked from Adderall. | 2010/07/09 19:29 | DEL

    Buy adderall without a prescription. Adderall without a precscription. Adderall. Adderall in mexico. Adderall treating anxiety in adults. Adderall xr.

  • Vicodin.

    Tracked from Vicodin addiction. | 2010/07/09 19:42 | DEL

    Vicodin with no prescription. Buy vicodin. Vicodin addiction. Vicodin mexico.

  • Adipex phentermine vs.

    Tracked from Adipex. | 2010/07/10 19:11 | DEL

    Rx adipex. Adipex that is shipped to missouri. No prescription adipex. Adipex. Adipex dangers. Adipex p al bawaba blogs.

  • Meridia.

    Tracked from Meridia reviews. | 2010/07/15 05:14 | DEL

    Meridia generic. Meridia. Tell me about the weight loss pill meridia. Meridia side effects. Meridia weight.

  • Xanax.

    Tracked from Xanax. | 2010/07/15 10:02 | DEL

    Xanax overdose. Purchashing xanax with mastercard. Xanax. Xanax xr. Xanax effect. Xanax 2 milligram.

  • Adipex results.

    Tracked from Adipex great buy. | 2010/07/16 19:57 | DEL

    Adipex dangers. Adipex ionamin medication phentermine. Non prescription adipex. Adipex hurt me. Adipex. Adipex online.

  • Meridia.

    Tracked from Meridia. | 2010/07/19 03:21 | DEL

    Meridia chat. Meridia. Meridia home. Meridia and wellbutrin.

  • Cialis.

    Tracked from Cialis. | 2010/07/19 11:29 | DEL

    Cialis side effects. Viagra vs cialis. Cialis murah klang. Cialis injury lawyer columbus. Cialis. Cialis canadian drugs.

  • Vicodin.

    Tracked from Effects of vicodin. | 2010/07/20 11:11 | DEL

    Vicodin with no membership fees. Prescriptions drugs pharmacy online vicodin. Withdrawals from vicodin. Vicodin. How to make vicodin. Vicodin without prescription. Vicodin statistics. Mexican vicodin. Vicodin withdrawal symtoms.

  • Viagra.

    Tracked from Viagra. | 2010/07/21 02:42 | DEL

    Viagra. Generic viagra american express. Re viagra cello. Discount viagra.

  • Viagra.

    Tracked from Viagra. | 2010/07/21 10:02 | DEL

    Buy generic viagra. Buy viagra australia. Viagra.

  • Using cialis.

    Tracked from Cialis. | 2010/07/22 14:08 | DEL

    Cialis and levitra. Cialis. Online pharmacy cialis on line.

  • Phentermine.

    Tracked from Phentermine side effects. | 2010/07/22 17:50 | DEL

    Phentermine no prescription. Phentermine without a prescription. Phentermine online. Phentermine. Phentermine 37 5mg. Generic phentermine. Phentermine yellow.

  • Buy percocet online.

    Tracked from Percocet. | 2010/07/23 19:04 | DEL

    Percocet sexual effects. Effects of long term percocet use. Percocet addiction. Percocet. Percocet 93-490 10 mg. Percocet vs vicodon. I quit percocet.

  • Cialis.

    Tracked from Cialis. | 2010/07/25 22:08 | DEL

    Viagra and cialis. Cialis online. Cialis. Cheap generic cialis.

  • Phentermine prozac.

    Tracked from Phentermine. | 2010/07/26 10:49 | DEL

    Phentermine online. Phentermine without prescription. Phentermine. Phentermine diet pills. Card master no phentermine prescription. Buy phentermine without prescription. Cheap phentermine.

  • Cialis.

    Tracked from Buy cialis phentermine. | 2010/07/26 23:55 | DEL

    Cialis 20mg. Cialis best price buy online. Generic cialis apcalis price comparison. Cialis. Cialis vs viagra. Cialis levitra viagra.

  • Valium.

    Tracked from Valium. | 2010/07/29 18:26 | DEL

    Valium blue 10mg. Buying valium. Valium.

  • Ativan.

    Tracked from Ativan. | 2010/08/06 17:32 | DEL

    Half life of ativan. Ativan half life. Ativan. Ativan online prescription overnight mastercard. Ativan weight gain. Side effects of ativan.

Name
Password
Homepage
Secret
< PREV |  1  |  2  |  3  |  4  |  5  |  6  |  7  |  ...  11  |  NEXT >