I’ve noticed some files I opened in a text editor have all kinds of crazy unrenderable chars

    • vithigar@lemmy.ca
      link
      fedilink
      arrow-up
      6
      ·
      8 hours ago

      Yes. Decoding a base64 encoded string will give you back the exact original data.

      Importantly though, this isn’t what you’re seeing when you open files in a text editor as you describe in your original post, and if you copied the text of those files and saved a new copy it’s very likely that it would not reproduce correctly.

    • leaky_shower_thought
      link
      fedilink
      arrow-up
      4
      ·
      8 hours ago

      yes, this method doesn’t lose any bits. one of its primary use before was email which was strictly text only.