Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: language Decoding problem..?

by space_monk (Chaplain)
on May 17, 2013 at 10:35 UTC ( [id://1033960]=note: print w/replies, xml ) Need Help??


in reply to language Decoding problem..?

Are you definitely sure they are equal? One stray space or punctuation mark is all it would take for them to be different.

You should use modules such as Data::Dumper to find out, and perhaps reverse encode title_checking to see if you end up with the same entities.

If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)

Replies are listed 'Best First'.
Re^2: language Decoding problem..?
by vasanthgk91 (Sexton) on May 17, 2013 at 11:06 UTC

    In header section I used properly Meta content

    <meta http-equiv=\"content-type\" content=\"text/ html; charset=UT +F-8\">

    In form section also i used properly utf-8

    <form accept-charset=\"utf-8\"></form>

    Next page param receiving

    my $title_checking=$cgi->param("title_checking"); print "$title_checking";

    ஸ்ரீசாந்த், சவான், சண்டிலா ஆகியோர் தங்களது குற்றங்களை ஒப்புக் கொண்டதாக தகவல் Like that i receiving

      I suggest just to be sure you walk along each character to find the difference. Something like this:
      # there are probably better ways of doing a string diff... my ($s1, $s2) = ($title_checking, $titlenamefromindex); for (my $i = 0; i < length( $s1); $i++) { print "Different at $i\n" if (substr( $s1, $i, 1) ne substr( $s2, $ +i, 1); }
      (You may need to make minor fixes to above)
      If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1033960]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2025-12-09 01:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (88 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.