• neidu2@feddit.nl
    link
    fedilink
    arrow-up
    0
    ·
    5 months ago

    It’ll “work”. A forgiving text editor will take the binary data and show it to you in the form of text, but this text will look like someone threw a hand grenade into a unicorn cos play convention.

    Binary to text is possible in theory, but as everyone who has accidentally sent the output of a binary file to the terminal can tell you, it rarely works very well.

    If you really want to “read” the file as text, it’s best to run it through a base64 decoder, so that the output will be limited to characters that are actually readable. The resulting text can then be encoded again and sent to a new file, and you will have a reproducible text string that represents your original file.