Re: more localization (l10n)

Earl Hood <earl-kgk2VSi+Fo9Wk0Htik3J/[email protected]>
Newsgroups gmane.mail.archives.mail-archive
Message-ID <[email protected]>
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
[email protected]
http://jab.org/cgi-bin/mailman/listinfo/gossip
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.