>>>>> On Thu, 23 Jan 2003 15:00:33 -0500, "Tay, William" <[EMAIL PROTECTED]> 
>said:

  > I am developing a Web application using Perl and a database. The Perl script is
  > responsible for getting data from the database and then generate a HTML page. The
  > data to be retrieved is encoded in UTF8. Here's part of my script:

Looks like you're using perl-5.6.1, right?

You have the option to upgrade to 5.8.0 and follow the advices in the
perlunicode and perluniintro manpages.

For 5.6.1 you will, as shown in a recent posting on this list by Mark
Proctor, have success by running misbehaving strings through the
following conversion:

    $var = pack('U*', unpack('U*', $var));

-- 
andreas

Reply via email to