Comparing UTF8 strings in Perl

2003-02-06 Thread Tay, William
Hi, I have a Web application that accepts a username and then displays his/her particulars, using Perl 5.6 as the CGI script and having the student particulars stored in a text file. Say user enters the username in UTF8 and the text file stores UTF8 strings, the Perl script reads the records and t

Re: Comparing UTF8 strings in Perl

2003-02-06 Thread michael monaghan
Will, I'm no utf-8/perl expert, far from it. However it's obvious that if the comparison isn't working (and you're sure you've coded the comparison correctly) then you're not comparing like with like. i.e. if the strings are the "same" then your data sources are encoded differently, and the compar

Re: [Encode] decode('alias', $1) goes wild

2003-02-06 Thread Jos I. Boumans
Dan Kogai wrote: Dan the Encode Maintainer P.S. I still need a little bit more time for $Encode::VERSION++. My load average is too high. Someone interested in implementing 'use less q(time)' ? use less 'time', 1..2; print time(); # 1044486 print scalar localtime; # Thu Feb 6 00:06:09 2003