[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: Perl & UTF-8



On Sun, Jan 06, 2002 at 08:06:38PM +0100, Holger Rauch wrote:
> Hi!
> 
> I want to substitute element content by entity references in UTF-8 encoded
> XML files using Perl. My script currently only works with ISO 8859
> encodings. Is there a module that can be used in Perl scripts that
> correctly reads and writes files according to specified encoding? If so,
> what's the name of it and where can I obtain it from?

Perl 5.6 has EXPERIMENTAL UTF-8 support. There are bugs. If possible, you
should use iconv to convert the files to an ISO 8859 encoding before
processing. In the likely event that that is not possible, you can activate
UTF-8 suppot in perl using 'use utf8;'. See perlunicode(1) for details.

-- 
Henry House
The attached file is a digital signature. See <http://romana.hajhouse.org/pgp>
for information.  My OpenPGP key: <http://romana.hajhouse.org/hajhouse.asc>.

Attachment: pgpfPyeVDTszE.pgp
Description: PGP signature


Reply to: