Re: [Perl-unix-users] Converting ASCII to UTF-8

2006-01-24 Thread Carl Reynolds
Anthony Ettinger wrote: there must be a UTF-8 html entity module on cpan? Thanks. That got me thinking in the right direction. HTML::Entities will translate entities to Unicode. Unfortunately if all the values in the string passed to HTML::Entities are less than 256, the string returned by HT

Re: [Perl-unix-users] Converting ASCII to UTF-8

2006-01-24 Thread Foo Ji-Haw
I'm using DBI to access the database and would like to enter the data into the mysql database in UTF-8 format. Everything I have read has indicated that if I can read the file using PerlIO, perl will automatically convert the data to UTF-8, but since the files are compressed and I'm uncompr

Re: [Perl-unix-users] Converting ASCII to UTF-8

2006-01-24 Thread Anthony Ettinger
there must be a UTF-8 html entity module on cpan?On 1/24/06, Carl Reynolds <[EMAIL PROTECTED] > wrote:I am receiving data for entry into a mysql database. The information comes to me in gzipped files and I'm using Compress::Zlib to uncompressthe file in perl. I'm running perl 5.8.5.The information

[Perl-unix-users] Converting ASCII to UTF-8

2006-01-24 Thread Carl Reynolds
I am receiving data for entry into a mysql database. The information comes to me in gzipped files and I'm using Compress::Zlib to uncompress the file in perl. I'm running perl 5.8.5. The information in the file is encoded in latin1. It is mostly ASCII 7-bit with HTML entities and some characte