Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unicode file in notepad [closed]

Tags:

What does it mean when I save a text file as "Unicode" in notepad? is it Utf-8, Utf-16 or Utf-32? Thanks in advance.

like image 594
FSm Avatar asked Dec 15 '12 18:12

FSm


People also ask

How do I keep Unicode in Notepad?

Notepad can manage text encoded in several formats such as ANSI, Unicode and UTF-8. Find these options by clicking the "Encoding" button on Notepad's Save As window. After creating or updating text in a document, you can select one of these encoding options in which to save the file.

How do you fix this file contains characters in Unicode format which will be lost Notepad?

"This file contains characters in Unicode format which will be lost if you save this file as an ANSI encoded text file. To keep the Unicode information, click cancel below and then select one of the Unicode options from the Encoding drop-down list. Do you want to continue?" Options were 'OK' and 'Cancel'.


1 Answers

In Notepad, as in Windows software in general, “Unicode” as an encoding name means UTF-16 Little Endian (UTF-16LE). (I first thought it’s not real UTF-16, because Notepad++ recognizes it as UCS-2 and shows the content as garbage, but re-checking with BabelPad, I concluded that Notepad can encode even non-BMP characters correctly.)

Similarly, “Unicode big endian” means UTF-16 Big Endian. And “ANSI” means the system’s native legacy encoding, e.g. the 8-bit windows-1252 encoding in Western versions of Windows.

like image 110
Jukka K. Korpela Avatar answered Oct 22 '22 15:10

Jukka K. Korpela