in reply to how to remove é

See also: The Unicode Sliderule.

HTH,

planetscape

Replies are listed 'Best First'.
Re^2: Special Characters list
by ZWcarp (Beadle) on Jun 15, 2011 at 22:38 UTC

    Ok I looked up the code...but the following doesn't seem to be working

    perl -i -pe 'tr/\xe9/FIX/d' test.txt

    or

    perl -i -pe 'tr/\00233/FIX/d' test.txt

    What am I doing wrong? Thanks so much for the help you guys are great

      tr/\xe9/FIX/d is the same as tr/\xE9/F/ and convert chr(0xE9) to "F".

      tr/\00233/FIX/d is the same as tr/3\002/IF/ and converts chr(002) to "F" and "3" to "I".

      What am I doing wrong?

      What are you trying to do?

      You previously alluded that you wanted to remove "é" characters that were encoded as E9.

      perl -i -pe 'tr/\xE9//d' yourprogram.pl

      But the "FIX" in the new code seems to indicate you want something else.