The term 'ANSI' is avoided in SciTE as it is commonly misunderstood or not understood at all. For example, UTF-8 is a possible 'ANSI' encoding and its use as the system ANSI code page CP_ACP is becoming more common. Unix systems do not generally use the term 'ANSI' for character encodings.
The File | Encoding menu contains five entries which may be localized:
1. Code Page Property
2. UTF-16 Big Endian
3. UTF-16 Little Endian
4. UTF-8 with BOM
5. UTF-8
The terms used in the status bar should match the menu but may be shortened. as there is limited room in the status bar. The original issue text above includes a list of reasonable values although there may be better choices. The user should not be confused by choosing 'Code Page Property' from the menu then seeing 'ANSI' in the status bar.
The code is not formatted the same as similar SciTE code (there are new lines between '}' and 'else') and would be better written as a switch statement. The feature is not useful unless it is documented.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This seems like a reasonable addition if anyone wants to implement it.
my patch to show encoding mode in status bar.
The term 'ANSI' is avoided in SciTE as it is commonly misunderstood or not understood at all. For example, UTF-8 is a possible 'ANSI' encoding and its use as the system ANSI code page
CP_ACPis becoming more common. Unix systems do not generally use the term 'ANSI' for character encodings.The File | Encoding menu contains five entries which may be localized:
1. Code Page Property
2. UTF-16 Big Endian
3. UTF-16 Little Endian
4. UTF-8 with BOM
5. UTF-8
The terms used in the status bar should match the menu but may be shortened. as there is limited room in the status bar. The original issue text above includes a list of reasonable values although there may be better choices. The user should not be confused by choosing 'Code Page Property' from the menu then seeing 'ANSI' in the status bar.
The code is not formatted the same as similar SciTE code (there are new lines between '}' and 'else') and would be better written as a switch statement. The feature is not useful unless it is documented.