Re: 2 Suprises w/5.8.0

2002-08-01 Thread Andreas J. Koenig
On Thu, 1 Aug 2002 06:33:07 +0300, Jarkko Hietaniemi [EMAIL PROTECTED] said: Pre-5.8 way of Unicode (or, even worse, pre-5.6 way of Unicode) simply is not compatible, and trying to bridge the gap is probably worse than its worth. I agree with Jarkko if you write new code. But for old

Re: 2 Suprises w/5.8.0

2002-08-01 Thread Nick Ing-Simmons
Andreas J. Koenig [EMAIL PROTECTED] writes: A scalar that is going to be passed to some extension, be it Compress::Zlib, Apache::Request or any extension that has no mention of Unicode in the manpage: if ($] 5.007) { require Encode; utf8::upgrade($self-{CONTENT}); # make sure it is

Re: 2 Suprises w/5.8.0

2002-08-01 Thread Andreas J. Koenig
On Thu, 01 Aug 2002 09:22:52 +0100, Nick Ing-Simmons [EMAIL PROTECTED] said: Andreas J. Koenig [EMAIL PROTECTED] writes: A scalar that is going to be passed to some extension, be it Compress::Zlib, Apache::Request or any extension that has no mention of Unicode in the manpage: if

Re: 2 Suprises w/5.8.0

2002-08-01 Thread Jarkko Hietaniemi
Excellent, thanks Andreas. I see cookbook like this as a patch for perluniintro/perlunicode for 5.8.1. -- $jhi++; # http://www.iki.fi/jhi/ # There is this special biologist word we use for 'stable'. # It is 'dead'. -- Jack Cohen

Re: 2 Suprises w/5.8.0 (Unicode)

2002-08-01 Thread Tim Bunce
On Thu, Aug 01, 2002 at 10:09:58AM +0200, Andreas J. Koenig wrote: A wrapper-function for fetchrow_array and fetchrow_hashref when the database contains only UTF-8: sub fetchrow { my($self,$sth,$what) = _; # $what is one of fetchrow_{array,hashref} if ($] 5.007) {

Re: 2 Suprises w/5.8.0 (Unicode)

2002-08-01 Thread Tim Bunce
On Thu, Aug 01, 2002 at 06:47:54PM +0200, Andreas J. Koenig wrote: On Thu, 1 Aug 2002 15:50:08 +0100, Tim Bunce [EMAIL PROTECTED] said: Umm. Of course that'll break if the driver start doing it itself. That's why perlunicode.pod recommends wrapper functions for the time from now till