perl-unicode

Re: Problem displaying UTF8 characters in HTML generated by a Perl sc ript

2003-01-23 14:30:06
On Thu, 23 Jan 2003 15:00:33 -0500, "Tay, William" 
<William(_dot_)Tay(_at_)usa(_dot_)xerox(_dot_)com> 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

<Prev in Thread] Current Thread [Next in Thread>