#495 check the encoding when open

Completed
closed
SciTE (236)
1
2011-11-02
2008-05-12
li openboy
No

如果是unicode就用unicode显示,不是unicode就用系统默认编码

Discussion

  • Neil Hodgson

    Neil Hodgson - 2008-05-12
    • priority: 5 --> 1
    • assigned_to: nobody --> nyamatongwe
    • labels: --> SciTE
    • milestone: --> 632977
     
  • Neil Hodgson

    Neil Hodgson - 2008-05-12

    Logged In: YES
    user_id=12579
    Originator: NO

    The Google translator couldn't decipher this.

     
  • li openboy

    li openboy - 2008-05-13

    Logged In: YES
    user_id=2084470
    Originator: YES

    check the encoding when open. if unicode then use unicode to display,if not,use the default encoding of OS.

     
  • li openboy

    li openboy - 2008-05-13
    • summary: 打开一个文件前先判断它的编码是不是unicode --> check the encoding when open
     
  • li openboy

    li openboy - 2008-05-13
    • priority: 1 --> 5
     
  • li openboy

    li openboy - 2008-05-13

    Logged In: YES
    user_id=2084470
    Originator: YES

    When open the file,Determine whether the coding for unicode,if so, to display the text use of unicode,Otherwise,use the default encoding of the system

     
  • Neil Hodgson

    Neil Hodgson - 2008-05-13

    Logged In: YES
    user_id=12579
    Originator: NO

    SciTE currently checks the file for a Unicode BOM and if present opens the file in the correct Unicode mode. If there is no BOM, it checks the start of the file for a Unicode coding cookie and if present will open the code in UTF-8 mode.

     
  • Neil Hodgson

    Neil Hodgson - 2008-05-13
    • priority: 5 --> 1
    • milestone: 632977 -->
     
  • li openboy

    li openboy - 2008-05-13

    Logged In: YES
    user_id=2084470
    Originator: YES

    For English, this is not a problem.But,for Chinese or Japanese, this is a problem. When "
    code.page=65001" ,I Open the a non-unicode file,Garbled! "code.page=932" can solve the problem.

     
  • Neil Hodgson

    Neil Hodgson - 2008-05-14

    Logged In: YES
    user_id=12579
    Originator: NO

    Does it work for you now?

     
  • li openboy

    li openboy - 2008-05-14

    Logged In: YES
    user_id=2084470
    Originator: YES

    People have to change the configuration file when they open files of different encoding,I just feel that is trouble.I hope that this process is automated.I do not mean that Scite can automatically change the configuration file but to accord with their own encoding of file to display.

    Web Browser and notepad on this point done a good job.

     
  • Neil Hodgson

    Neil Hodgson - 2008-05-15

    Logged In: YES
    user_id=12579
    Originator: NO

    Automated encoding determination is inaccurate. If a good implementation is offered then it could go in as an option. Most programs are written in a single encoding so can set the encoding as wanted on a directory or project basis.

     
  • Neil Hodgson

    Neil Hodgson - 2011-11-02
    • milestone: --> Completed
    • status: open --> closed
     
  • Neil Hodgson

    Neil Hodgson - 2011-11-02

    Can use a script to determine encoding with command.discover.properties.

     

Log in to post a comment.