The encoding that Notepad++ just calls “ANSI”, does anyone know what to call it for Ruby?
I found the answer to this question on the Notepad++ Forum, answered in 2010 by CChris who seems to be authoritative.
Answer:
That will be the system code page for your computer (code page 0).
More Info:
Show your current code page.
cmd执行命令查看本机的code page
chcp
Active code page: 936
Code Page Identifiers
936 gb2312 ANSI/OEM Simplified Chinese (PRC, Singapore); Chinese Simplified (GB2312)
1252 windows-1252 ANSI Latin 1; Western European (Windows)
本地的计算机,保存了一个ansi的文件
file -i test20210413.txt
test20210413.txt: text/plain; charset=iso-8859-1