Displaying Control character [SOH] as blank space or else in Notepad++

前端 未结 2 2082
北恋
北恋 2021-02-08 23:52

I am debugging/monitoring a log file containing extensively the control character [SOH]
This makes logs barely unreadable (well, to me, on NP++, but it has to be this way as

2条回答
  •  孤独总比滥情好
    2021-02-09 00:17

    If you want to avoid these character in the future select Session Logging feature, as such in Putty, Log "printable output" only. This will take out all the unnecessary Scintilla characters.

    Regarding Putty (cached link below):

    4.2 The Logging panel

    The Logging configuration panel allows you to save log files of your PuTTY sessions, for debugging, analysis or future reference.

    The main option is a radio-button set that specifies whether PuTTY will log anything at all. The options are

    +"Logging turned off completely". This is the default option; in this mode PuTTY will not create a log file at all.

    +"Log printable output only". In this mode, a log file will be created and written to, but only printable text will be saved into it. The various terminal control codes that are typically sent down an interactive session alongside the printable text will be omitted. This might be a useful mode if you want to read a log file in a text editor and hope to be able to make sense of it.

    +"Log all session output". In this mode, everything sent by the server into your terminal session is logged. If you view the log file in a text editor, therefore, you may well find it full of strange control characters. This is a particularly useful mode if you are experiencing problems with PuTTY's terminal handling: you can record everything that went to the terminal, so that someone else can replay the session later in slow motion and watch to see what went wrong.

    +"Log SSH packet data". In this mode (which is only used by SSH connections), the SSH message packets sent over the encrypted connection are written to the log file. You might need this to debug a network-level problem, or more likely to send to the PuTTY authors as part of a bug report. BE WARNED that if you log in using a password, the password will appear in the log file, so be sure to edit it out before sending the log file to anyone else!

    LINK: http://webcache.googleusercontent.com/search?q=cache:L0M6HnWRvowJ:the.earth.li/~sgtatham/putty/0.53b/htmldoc/Chapter4.html+&cd=1&hl=en&ct=clnk&gl=us

提交回复
热议问题