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 then tries to compare the usernames so as to display the particulars to the user if there is a match.
Below is how the comparison is done. Apparently, it does not work on UTF8 strings. if ( $NameFromUser eq $NameFromDB ) { // DISPLAY particulars to user } Please advise. Thanks. Will