如何在Notepad ++中将文件的编码转换为ISO-8859-1?

Sab*_*neA 1 encoding notepad++ iso-8859-1

我有一个UTF-8文件,我需要将其转换为iso-8859-1.我知道notepad ++可以转换编码,你点击转换为ANSI,例如,你修改了你的文件,你可以通过变为红色的保存按钮看到它.我知道转换是改变字节,这就是我想要的!但我不知道如何在notepad ++中选择我想要的编码.只有5种编码可供选择:ANSI; UTF-8无BOM; UTF-8; UCS-2 Big Endian; UCS-2 Little Endian.我该如何选择另一个?

Lar*_*her 10

  1. 使用编码 - >转换为ANSI
  2. 使用编码 - >字符集 - >西欧 - > ISO 8859-1.

假设您有一个文件enc_test.txt,创建为带有内容的UTF-8 Ä(带有点的德语变音"A"):

在第1步之前:

cat -A enc_test.txt 
M-CM-^D

cat  enc_test.txt 
Ä

stat enc_test.txt 
  File: 'enc_test.txt'
  Size: 2               Blocks: 8          IO Block: 4096   regular file
Device: 811h/2065d      Inode: 2885375     Links: 1
Access: (0664/-rw-rw-r--)  Uid: ( 1000/      lf)   Gid: ( 1000/      lf)
Access: 2016-05-20 16:56:40.852021989 +0200
Modify: 2016-05-20 16:56:40.376021976 +0200
Change: 2016-05-20 16:56:40.376021976 +0200
 Birth: -
Run Code Online (Sandbox Code Playgroud)

在步骤2(文件自动保存)后,输出(在设置为UTF-8的终端中)为:

cat -A enc_test.txt 
M-D

cat  enc_test.txt 
?

stat enc_test.txt 
  File: 'enc_test.txt'
  Size: 1               Blocks: 8          IO Block: 4096   regular file
Device: 811h/2065d      Inode: 2885375     Links: 1
Access: (0664/-rw-rw-r--)  Uid: ( 1000/      lf)   Gid: ( 1000/      lf)
Access: 2016-05-20 16:58:10.444024488 +0200
Modify: 2016-05-20 16:58:10.404024487 +0200
Change: 2016-05-20 16:58:10.404024487 +0200
 Birth: -
Run Code Online (Sandbox Code Playgroud)

大小字段和输出cat -A告诉我们发生了一些事情.