in reply to Re: Conversion of strange characters
in thread Conversion of strange characters

If you don't know whether those characters are hex (well, `pr% certainly isn't), how would you or we know how to translate them?

sorry - I just thought someone with more experience might have more of an idea what these characters represent...and come across a similar problem with a text file that they'd managed to convert

elbow
  • Comment on Re: Re: Conversion of strange characters

Replies are listed 'Best First'.
Re: Re: Re: Conversion of strange characters
by Bismark (Scribe) on Feb 17, 2004 at 14:56 UTC
    Here are a couple of articles that might have some helpful information.
    from the pen
    perl discuss

    This mod tests for a valid packed decimal. Might have some clues for you as well.
    cpan mod

    More information would definately help. Is it IBM-370 style? COBOL? BCD?

    Or is it just the country code of Puerto rico...

    Kerry
    "Yet what are all such gaieties to me
    Whose thoughts are full of indices and surds?"
    quotes the Lama
Re: Conversion of strange characters
by Abigail-II (Bishop) on Feb 17, 2004 at 12:08 UTC
    I have converted many files in the past. There are billions and billions of ways to encode files. If you don't know how it's encoded, you might want to try applying some decryption techniques, but with the handful of bytes you've given, that's a hopeless task.

    Abigail

      so is there anything I can do to try and find out the encoding used? Either by checking the details for the mainframe system being used, or something to do with the network system the text file has been paased to?

      Or have I simply not got a chance in hell of being able to sort this out? :-}

      elbow
        Check the documentation of whatever it is that's producing those files? Talk to someone who knows? Ask your manager for help?

        Look, this is a Perl site. It's not about every computer related problem, where you might want to implement the solution in Perl. As I said, the handful of characters you gave might be an encoding about a baseball team from the south. Or it's a list of NYC subway stations. Perhaps it's the title of a song Elvis recorded last week (yes, he is alive and he flips burgers in North Dakota - he's happy now). If you don't know how it's encoded, and you don't have the means to find out, all hope is lost.

        Abigail