in reply to funny character

Well, it cannot be ASCII 0357, and there are only 128 (0200) code points defined in ASCII....

What you want is a simple replace:

s/\0357/•/g
(Or whatever entity you want).

Abigail

Replies are listed 'Best First'.
Re^2: funny character
by Aristotle (Chancellor) on Jun 06, 2002 at 19:35 UTC
    The character he is talking about is character value 239. That is 0357 in octal notation.
    Update: changed "ASCII". Good catch, belg4mit.

    Makeshifts last the longest.

      Errm, that wasn't Abigail-II's point exactly (octal vs. decimal). ASCII only defines 0-127, 128-255 are 8th bit and non-standard (in as much as sometimes random countries did random things. Heck, Germany even mucked about with []\{}|~). The char in question is probably from ISO-8859-1. More on character sets.

      --
      perl -pew "s/\b;([mnst])/'$1/g"

Re: Re: funny character
by alien_life_form (Pilgrim) on Jun 06, 2002 at 17:35 UTC
    Greetings,

    Looks you did not test...

    c:\temp>perl -e"s/\357/<li>/g&&print $_ while(<>)" funny.txt <li><li><li> c:\temp>perl -e"s/\0357/<li>/g&&print $_ while(<>)" funny.txt c:\temp>
    funny.txt contains 3 samples of the offending character.
    Cheers,
    alf
    You can't have everything: where would you put it?