Unicode text lost when saved as ANSI

18,790

Solution 1

Once the characters are converted to ? marks they cannot be converted back: a ? mark is just a ? mark, it doesn't know where it came from. If you replace all the letters a, b, c in a text with x, you cannot restore the original a, b, c letters.

Your only option is to recover from a previous copy if you have one.

Solution 2

You can try to open your text document in notepad++. As commented by @cartographer

Go to encoding menu and chose Encode in UTF-8 option.

It may help you to retrieve your text back.

Or you can try with all options, may some encoding format convert your text to origional one . :)

Share:
18,790

Related videos on Youtube

Abdullah3182
Author by

Abdullah3182

Updated on September 18, 2022

Comments

  • Abdullah3182
    Abdullah3182 almost 2 years

    When I saved a text file using a notepad with ANSI, I lost all of the information since it became all question marks. Is there a way to convert it back to Unicode to retrieve the text?

    • cartographer
      cartographer over 9 years
      You can try something like what's described in this answer: superuser.com/a/49129/400911 (if you are on linux). Or look for a "reopen with encoding UTF-8" option in your editor, notepad++ has something like this IIRC.
    • tchrist
      tchrist over 9 years
      There is no such thing as “ANSI”.
    • Seth
      Seth over 7 years
      @tchrist American National Standard Insitute in an encoding it's usually referring to a local code page (ASCII+extended characters) encoding. What is ANSI format?. A bit of a late reply but this was pushed to the front page.