From: Paul Duncan Date: 2007-04-08T10:06:51+09:00 Subject: Re: How to convert a string's charset?? --vKFfOv5t3oGVpiF+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Nanyang Zhan (sxain@hotmail.com) wrote: > Paul Duncan wrote: >=20 > > Use Iconv: > Thanks. > It works,but some strings will raise error, I have to skip them. You can tell iconv to transliterate or ignore characters that it can't convert. Appendd //TRANSLIT or //IGNORE to the name of the destination character set. --=20 Paul Duncan pabs in #ruby-lang (OPN IRC) http://www.pablotron.org/ OpenPGP Key ID: 0x82C29562 --vKFfOv5t3oGVpiF+ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGGEAnzdlT34LClWIRAnSJAJ98wDUWvcjpBMzy2WBNRtZfkpoXhACgm7uc 9pDr+aFQiiXzr7IM2v4euRs= =aewt -----END PGP SIGNATURE----- --vKFfOv5t3oGVpiF+--