Menu

#1497 scite - Add Encoding property that may be displayed in status bar

Initial
open
nobody
None
5
2024-12-13
2023-09-18
No

Add Encoding property that may be displayed in status bar: CP, UTF16BE, UTF16LE, UTF8BOM, UTF8.

1 Attachments

Discussion

  • Neil Hodgson

    Neil Hodgson - 2023-10-05

    This seems like a reasonable addition if anyone wants to implement it.

     
  • twu2

    twu2 - 2024-12-11

    my patch to show encoding mode in status bar.

     
  • Neil Hodgson

    Neil Hodgson - 2024-12-13

    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.

     

Log in to post a comment.