Skip to content

Deletes content of the file when converting ANSI to UTF-8 #3054

@ilhanyumer

Description

@ilhanyumer

Description of the Issue

This bug exists for at least few years. And it is the most annoying bug of Notepad++. When I convert the encoding to UTF-8 (without BOM) it suddenly removes all content of the file. And it does not left undo and rendo. The worst part is if this usse appears not during the convertion but during the saving.

Steps to Reproduce the Issue

  1. Open a file which is ANSI
  2. Add some UTF-8 content, like Ü, Ğ, Ö, İ etc
  3. Convert the file to UTF-8

Expected Behavior

Now the file is UTF-8.

Actual Behavior

Now the file is empty.

Debug Information

Notepad++ v7.3.2 (64-bit)
Build time : Feb 12 2017 - 23:17:55
Path : C:\Program Files\Notepad++\notepad++.exe
Admin mode : ON
Local Conf mode : OFF
OS : Windows 8.1 (64-bit)
Plugins : mimeTools.dll NppConverter.dll

I have encountered this usse when using Windows 7, Windows 10, Turkish Windows, English Windows, different Notepad++ versions.

I cannot reproduce the issue. I don't remember what number of new Unicode characters in what order I have entered. May be I need to restart the Notepad++, may be I need to move between few tabs. I have never been able to reproduce this bug.

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