Notepad3: Error on saving as GB2312

Created on 22 Nov 2020  路  12Comments  路  Source: rizonesoft/Notepad3

  • Create a new .txt file, and open it with Notepad3 (x64) v5.20.915.1
  • Input something
  • File > Encoding > Set Document as... > More Encodings... > Select Chinese Simplified (GB2312)
  • Asked "Switching the file encoding ... undo history will be cleared. Continue?", press "Yes"
  • Save
  • Two dialogs pop out, saying "Error saving path\to\file.txt" and "The current file has been modified by an external program. Reload?"
  • The file is still empty
馃悶 bug

All 12 comments

Hello @shunf4 ,

Feel free to test the "BETA/RC paf" version "Notepad3Portable_5.20.1125.2_beta.paf" or higher, see below or issue #1129.

"Notepad3Portable BETA/RC paf" version can be used with or without ".7z" extension.
To update your "Notepad3 Setup" version with the latest features/fixes from the "BETA/RC" version, see issue #1105.

Also, feel free to test the "BETA/RC Setup" version "Notepad3_5.20.1116.1_beta_Setup" or higher, see below or issue #1129.

Comments and suggestions are welcome... 馃槂

Edit: Replacing incorrect download link for: "Notepad3Portable_5.20.1125.2_beta.paf.exe.7z"

Hi,

I tested the BETA/RC version and the error didn't happen. Thanks!

However I discovered another two issues:

  • In the list of "More Encodings..." I found "Chinese Simplified (GB2312)" means HZ-GB-2312 (the 7-bit version of GB2312); but most of the time now, GB2312 means the EUC-CN form of GB2312 (i.e. GB2312-80). I think it's better we change the name in list to "Chinese Simplified (HZ-GB2312)" or something similar to prevent misunderstanding. (The status bar shows the correct and accurate encoding name; see below.)

image
image

  • I can revert from a GB2312-80 encoded text file with HZ-GB2312 encoding. Is this a bug?

HZ-GB2312.txt
GB2312-80.txt

  • HZ-GB2312.txt
  • GB2312-80.txt

Hello @shunf4 ,
To accurately identify the encoding, could you please add test files with more characters per line (eg: 4 or 5 lines of text) ?馃

  • I can revert from a GB2312-80 encoded text file with HZ-GB2312 encoding. Is this a bug?

Hello @shunf4 ,
It looks like your "GB2312-80-new.txt" is detected by Notepad3 as "GB18030" instead of "GB2312-80", we need to investigate 馃

In attachment, the same text encoded in "UTF-8": (File> Encoding> Define document as... > Select> UTF-8 - Shitf + F8).

Unicode UTF-8-new.txt

My recommendation is to use "Unicode (UTF-8)" as much as possible!

  • UTF-8 is widely used on Internet pages and recognized by all modern "text editors". 馃憤 馃槂

@hpwamr

It looks like your "GB2312-80-new.txt" is detected by Notepad3 as "GB18030" instead of "GB2312-80", we need to investigate 馃

GB18030 is a newer standard which is compatible with GB2312-80 and GBK, so that would be OK.

  • I think it's better we change the name in list to "Chinese Simplified (HZ-GB2312)"

To resume, your suggestion is to rename "Chinese Simplified (GB2312)" to "Chinese Simplified (HZ-GB2312)", correct ? 馃

  • I think it's better we change the name in list to "Chinese Simplified (HZ-GB2312)"

To resume, your suggestion is to rename "Chinese Simplified (GB2312)" to "Chinese Simplified (HZ-GB2312)", correct ? 馃

Yes. Or "Chinese Simplified (HZ-GB-2312)" according to MIME/IANA

Hello @shunf4 ,

The names of the Chinese encoding strings have been changed according to MIME/IANA.

Feel free to test the "BETA/RC paf" version "Notepad3Portable_5.20.1201.1_beta.paf" or higher, see below or issue #1129.

"Notepad3Portable BETA/RC paf" version can be used with or without ".7z" extension.
To update your "Notepad3 Setup" version with the latest features/fixes from the "BETA/RC" version, see issue #1105.

Also, feel free to test the "BETA/RC Setup" version "Notepad3_5.20.1116.1_beta_Setup" or higher, see below or issue #1129.

Comments and suggestions are welcome... 馃槂

Thanks for your work!

the BETA/RC setup is not latest?

the BETA/RC setup is not latest?

Latest Notepad3 BETA Setup is: Notepad3_5.20.1116.1_beta_Setup.exe (November 16)
In a few days, I will release a new Notepad3 BETA Setup. 馃

Meanwhile, to update your "Notepad3 BETA Setup" version with the latest features/fixes from the latest "BETA/RC" version, please follow the issue #1105.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

blackcrack picture blackcrack  路  3Comments

craigo- picture craigo-  路  3Comments

bravo-hero picture bravo-hero  路  3Comments

craigo- picture craigo-  路  4Comments

zb-z picture zb-z  路  3Comments