dstefani has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I know this is not specificlly Perl, but I know you folks are very good with regexp.

I am trying to figure out what type of character this is so I can regexp it out of a file.
The file started as a filemake mac, to filemaker win, to export as ascii csv.

I've been dumping it out to a browers to check it out.

In firefox on my PC they look like the male symbol with the circle with the arrow, on my linux box they are a box with
00
0B

And on my mac they display as nothing.

Veiwing the source code they all look like boxes, except for linux, then they look the same as displayed on the browser. When I take the output as text in gvim windows, they are ^K.

Any ideas as to what this is and how I can womp it?

The page to see it is here:
http://www.techcraft.us/char.html

Thanks,

dstefani

Replies are listed 'Best First'.
Re: Weird Char's
by Zaxo (Archbishop) on Oct 23, 2004 at 00:51 UTC

    My first guess is that that is a vertical tab in utf16. Whatever it is, you can substitute for it with,

    my $subst = ''; s/\000\013/$subst/g;
    Those are octal representations of the bytes.

    After Compline,
    Zaxo

      I knew I could count on you people. I'm in the middle of bbq-ing burgers and contenplating my deadline, as soon as dinner is done I plan to check these out.

      Thank you again, I really appreciate your time.

      - dstefani

        Yep, it was a vertical tab /013+/ that did the trick.

        Thank you and good night!

        - dstefani

Re: Weird Char's
by JediWizard (Deacon) on Oct 23, 2004 at 00:50 UTC

    Open the file in a Hex editor. Find the offending character's Hex value, the use a regex to remove it. For example if the characters hax value is 41 (that is actually an 'A'), the regex would look like this:

    s/\x41//g
    May the Force be with you
Re: Weird Char's
by steves (Curate) on Oct 23, 2004 at 22:33 UTC

    For what it's worth, I find this site to be a good resource for character set issues.