On February 16, 2005 at 16:37, Earl Hood wrote: > Have a look at MHonArc::CharEnt's _utf8_to_sgml() routine. > It basically provides the conversion code to do what you want. > You only need the part for Perl >= 5.6 if using later versions > of Perl.
I forgot to note that _utf8_to_sgml only handles the utf-8 to entity references part. Use Encode's from_to() routine to do the character encoding conversion. For example: Encode::from_to($octets, 'koi-8', 'utf-8'); $octets are converted in-place. MHonArc uses this function in _encode_from_to() of the MHonArc::Encode module. --ewh _______________________________________________ Discussion list for The Mail Archive Gossip@jab.org http://jab.org/cgi-bin/mailman/listinfo/gossip