Notepad3: notepad3 open some asni coded *. bat as utf-8 or gb-18030

Created on 17 Jul 2019  路  8Comments  路  Source: rizonesoft/Notepad3

My computer system is Simplified Chinese
When opening bat files encoded by Asni with notepad3
Random decoded as UTF-8 or gb-18030

encoding detection

Most helpful comment

Hello @RaiKoHoff , here the result of a first analyze:

"clean windows tray'

  • Notepad3 v2395 "Out-of-the-Box" --> showed in statusbar: GB-18030
  • Notepad3 v2395 "OTB", UCHARDET in Debug Mode:
    UCD=GB18030, 99% (reliable), showed in statusbar: GB-18030
    For this file Notepad3 and UCHARDET have correctly Chinese Simplified detected... 馃憤
  • Notepad++ v7.7.1 "OTB" --> GB2312 (Simplified)

"Del USB drive System...'

  • Notepad3 v2395 "Out-of-the-Box" --> showed in statusbar: UTF-8
  • Notepad3 v2395 "OTB", UCHARDET in Debug Mode:
    UCD=Windows-1252, 63% (reliable), showed in statusbar: ANSI (CP-1252)
    For this file, Notepad3 and UCHARDET have incorrectly Simplified Chinese detected because there are NOT enough Chinese characters (only 5 chars ! ).
    Adding more Chinese characters and the detection becomes correct! 馃
  • Notepad++ v7.7.1 "OTB" --> ANSI

Hello @kli2013,
My recommendation for problematic files is:

  • Clean the list of "Remember Recent Files" :
    Settings --> Remember --> "Unchecked" Remember Recent Files
  • Recode your file to Chinese Simplified:
    File --> Encoding --> "Recode to GB18030 (10th line from top)
  • Set again "Remember Recent Files": Settings --> Remember --> "Checked" Remember Recent Files

All 8 comments

Please provide some test-files and test also current beta version _5.19.717.2394 (for beta channel access see #1129).

https://mega.nz/#!TFRFnAxK!AjZ_nuE_6xFV22RhfaQQQfbjKVVXJxiR2APLgbFvX0g
here is two bat file and my test picture
use 5.19.717.2395 BETA

Hello @kli2013 ,
The site of your link is blocked because it is considered as: "insecure" !
Could you please, use for eg: https://anonfile.com/ or https://openload.cc/ or https://bayfiles.com/
Or simply upload your file in one of our Read/Write Exchange_Place, see #1129

Hello @RaiKoHoff , here the result of a first analyze:

"clean windows tray'

  • Notepad3 v2395 "Out-of-the-Box" --> showed in statusbar: GB-18030
  • Notepad3 v2395 "OTB", UCHARDET in Debug Mode:
    UCD=GB18030, 99% (reliable), showed in statusbar: GB-18030
    For this file Notepad3 and UCHARDET have correctly Chinese Simplified detected... 馃憤
  • Notepad++ v7.7.1 "OTB" --> GB2312 (Simplified)

"Del USB drive System...'

  • Notepad3 v2395 "Out-of-the-Box" --> showed in statusbar: UTF-8
  • Notepad3 v2395 "OTB", UCHARDET in Debug Mode:
    UCD=Windows-1252, 63% (reliable), showed in statusbar: ANSI (CP-1252)
    For this file, Notepad3 and UCHARDET have incorrectly Simplified Chinese detected because there are NOT enough Chinese characters (only 5 chars ! ).
    Adding more Chinese characters and the detection becomes correct! 馃
  • Notepad++ v7.7.1 "OTB" --> ANSI

Hello @kli2013,
My recommendation for problematic files is:

  • Clean the list of "Remember Recent Files" :
    Settings --> Remember --> "Unchecked" Remember Recent Files
  • Recode your file to Chinese Simplified:
    File --> Encoding --> "Recode to GB18030 (10th line from top)
  • Set again "Remember Recent Files": Settings --> Remember --> "Checked" Remember Recent Files

... and use the development beta version (release version has problem with local ANSI code-page ...).

ok..

Hello @kli2013 ,

As far as I am concerned, this issue may be closed....

Was this page helpful?
0 / 5 - 0 ratings

Related issues

craigo- picture craigo-  路  3Comments

tzleon picture tzleon  路  3Comments

rizonesoft picture rizonesoft  路  4Comments

omega32 picture omega32  路  3Comments

hpwamr picture hpwamr  路  3Comments