Closed Davider-code closed 2 years ago
Not a bug, both files ware declared as ISO-8859-1
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
Maybe we should prefer Windows-1252
, https://encoding.spec.whatwg.org/#names-and-labels
>>> b'\x93'.decode('iso-8859-1')
'\x93'
>>> b'\x93'.decode('windows-1252')
'“'
>>> b'\x94'.decode('iso-8859-1')
'\x94'
>>> b'\x94'.decode('windows-1252')
'”'
>>>
Not a bug, both files ware declared as
ISO-8859-1
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
Maybe we should prefer
Windows-1252
, https://encoding.spec.whatwg.org/#names-and-labels>>> b'\x93'.decode('iso-8859-1') '\x93' >>> b'\x93'.decode('windows-1252') '“' >>> b'\x94'.decode('iso-8859-1') '\x94' >>> b'\x94'.decode('windows-1252') '”' >>>
感谢回复, 要设置哪个地方呢?
implemented by commit d190148a04f410a71010b8d21dbf9e32fcf0886a.
It works for me (opened as UTF-8), with following (the default) configuration.
Judging by his demo picture he made a re-code (as GBK) to the text and the re-coded file cannot be properly recognized for some reason.
He is probable use English Windows (ANSI (1252)
in gif), ANSI code page (1252) can encode all GBK bytes.
set default encoding to GBK should fix the problem:
https://github.com/zufuliu/notepad2/blob/0cc948a87b54ff21a68a447bbd5c6e25fc5e61c1/src/EditEncoding.c#L2408-L2422
以前反馈过很多次了, R4220 版发布后, 一直在用, 经常出现乱码, 有点影响使用了, 再反馈一下,如下图所示 下面的文件, 我用emeditor打开,没有乱码显示
测试文件: test.zip