notepad-plus-plus / notepad-plus-plus/notepad-plus-plus
The encoding of the XML document. The actual and specified in encoding = ""
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 29.4k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
Description of the Issue
The encoding of the XML document is determined from the information in the title of this document, and not from the actual character encoding.
Steps to Reproduce the Issue
- Open an XML document whose contents are encoded with Windows-1251. And the title says "encoding =" Windows-1251 "
- Change encoding = "Windows-1251" to encoding = "UTF-8". Save and close the document.
- Reopen this document.
Expected Behavior
The program should determine that the text in the Windows-1251 encoding, despite the header and display the content correctly. The bottom panel of the encoding display should be Windows-1251.
Actual Behavior
The program displays the document incorrectly, and the bottom panel displays the encoding specified in the header of the XML document (UTF-8, which we wrote in the title), not the actual one.
Debug Information
Notepad++ v7.3.3 (32-bit)
Build time : Mar 8 2017 - 03:37:37
Path : C:\TCPU68\Programm\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : ON
OS : Windows 10 (64-bit)
Plugins : mimeTools.dll NppConverter.dll NppExport.dll NppTextFX.dll PluginManager.dll
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are identified in the issue. Reproduce the three steps with a Windows-1251 XML document and inspect both the displayed text and the bottom-panel encoding; done means the document remains readable and the panel reports Windows-1251 despite the changed XML declaration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, xml
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100