in reply to Remove ÿþ from a string
Hi AnishaM,
Personally I would try to diagnose the issue a little further, since even a simple print of the variable can give misleading results when it comes to diagnosing encoding problems.
If the data is coming from a file, I suggest you try the commands hexdump -C FILENAME or od -Ax -tx1z FILENAME and show us the first few lines.
If the data is coming from some other source and you just have a Perl string, try the code use Devel::Peek; Dump( $string ); and show us that output.
Regards,
-- Hauke D
|
|---|