From: Pau Garcia i Quiles Date: 2006-11-14T16:20:56+09:00 Subject: Re: Ampersand entities Hello, Try this: str = '�����€' str.unpack("U*").collect { |s| (s > 127 ? "&##{s};" : s.chr) }.join("") -- Pau Garcia i Quiles http://www.elpauer.org (Due to the amount of work, I usually need 10 days to answer) Quoting Miquel Oliete : > Hi all > > How can I convert from utf-8 to HMTL ampersand entities and from HTML > ampersand entities to utf-8 (I'm searching it a lot but I can found it)? > > Thanks in advance > > -- > > Miquel (a.k.a. Ton) > Linux User #286784 > GPG Key : 4D91EF7F > Debian GNU/Linux (Linux Wolverine 2.6.14) > > Welcome to the jungle, we got fun and games > Guns n' Roses > > > ______________________________________________ > LLama Gratis a cualquier PC del Mundo. > Llamadas a fijos y m�viles desde 1 c�ntimo por minuto. > http://es.voice.yahoo.com > >