Re: iso-8859-1 to unicode problem

2007-04-24 Thread Beau E. Cox
On Tuesday 24 April 2007 02:07, Mumia W. wrote: > On 04/24/2007 03:06 AM, Jeff Pang wrote: > > 2007/4/24, Beau E. Cox <[EMAIL PROTECTED]>: > >> How do I get a proper conversion from iso-8859-1 to perl's internal > >> utf8? [snipped] > I don't think it'll work in this case because \x99 doesn't seem

Re: iso-8859-1 to unicode problem

2007-04-24 Thread Mumia W.
On 04/24/2007 03:06 AM, Jeff Pang wrote: 2007/4/24, Beau E. Cox <[EMAIL PROTECTED]>: How do I get a proper conversion from iso-8859-1 to perl's internal utf8? Hello, You may use Encode module's decode function to do this conversion. ie,for this string which was 'gb2312' format, $str = "中文";

Re: iso-8859-1 to unicode problem

2007-04-24 Thread Jeff Pang
2007/4/24, Beau E. Cox <[EMAIL PROTECTED]>: How do I get a proper conversion from iso-8859-1 to perl's internal utf8? Hello, You may use Encode module's decode function to do this conversion. ie,for this string which was 'gb2312' format, $str = "中文"; We use decode to convert it to perl's in

iso-8859-1 to unicode problem

2007-04-24 Thread Beau E. Cox
Hi - I am new to international character encoding and how the various encodings are handled in perl. After a day of reading, I'm asking for help. I am downloading data from an international (French) web site. The HTTP headers show that the pages I am downloading are encoded in iso-8859-1. Most ch