From: David Vallner Date: 2006-11-09T21:38:48+09:00 Subject: Re: Charset detection --------------enig59279F3B4E92B82146E458C8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Miquel Oliete wrote: > Hi >=20 > I'm coding a planet software in Ruby, like planet planet, but inserting= > all rss data into a database (mysql now) and showing the entries from > database. >=20 > I don't know how can I detect the rss charset. Can you help me? >=20 Look for the XML header? That one should list encoding. If it doesn't, bitch, whine, and moan at the feed author to do so, charset detection is unavoidably a hack and shouldn't have to be done by now if interoperating apps are coded sanely. (And if someone don't code a RSS feed provider with interop in mind, there is no God anymore.) David Vallner --------------enig59279F3B4E92B82146E458C8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) iD8DBQFFUyFTy6MhrS8astoRAm5sAJ4ujhl/Uhk60QWbdYjLF0EM8JvJcQCffHBi R+PXPob9UdBdEWLNtZhqCfY= =Zfmf -----END PGP SIGNATURE----- --------------enig59279F3B4E92B82146E458C8--