Skip to content

Inconsistent character encoding detection on open vs reload #2843

@Darkwolfdude

Description

@Darkwolfdude

Hi, using version 7.3.1 (it was also bugged on a previous version) I've been working on some UTF-8 XML (this XML class that i'm working with only accepts UTF-8 input and will crash out otherwise - and also putting the file through phps libxml error detection to confirm if it's UTF-8 or not - which it is when this error occurs).

When I open a newly created file the document displays in UTF-8 as expected, however when it automatically refreshes the file or reload the file after it has been updated, the file encoding changes from UTF-8 to TIS-620. It appears that the character that is mainly bugging it out is the left accented a; "á" (in my testing at least).

I took a look at a couple of the other issues raised and I tried going Preferences -> Misc -> Autodetect character encoding and turned that off. It worked after closing the original file, opening it, changing it externally then reloading it (but it didn't fix it after just changing the option then reloading the file after changing it externally).

I also have Preferences -> New Document -> Encoding -> UTF-8 > Apply to opened ANSI files [ON] (altering this didn't seem to do anything for me - but may not have tested that properly).

*When I reference UTF-8, it's without BOM.

Debug Information

Notepad++ v7.3.1 (64-bit)
Build time : Jan 17 2017 - 00:28:43
Path : C:\Program Files\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS : Windows 10
Plugins : mimeTools.dll NppConverter.dll

Screenshot1 (Expected):
image

Screenshot2 (Actual):
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions