Skip to content

Behavior of 'ASCII as UTF-8' in 'File' -> 'Encoding'... ? #561

@lhmouse

Description

@lhmouse

These are encoding settings that I have at the moment:

selection_013


Then I create a new file in UTF-16, such as this one:

selection_012

The encoding column in the status bar says UTF-16 LE and the file is indeed in this encoding. This is correct.


Then I navigate to this menu entry, to reload the file in the default encoding, UTF-8.

selection_016

The contents are now seen as nested with NUL characters and the status bar says UTF-8. This is still correct.

selection_014


Then I try the ASCII as UTF-8 one...

selection_017

But it does not reload the file in either ASCII or UTF-8. It makes Notepad3 detect the correct encoding and reload the file in the detected encoding, UTF-16.

selection_015


Question

Is this designed behavior? If it is, the menu entry could have been renamed to Detect encoding and recode.

BTW, when I was translating Notepad3 for zh_CN I used the phrase above, as it was the only precise description of what this menu entry did.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions