Re: double click document in the winscp it shows messy code
You probably want to open it, instead of editing it as a plain text. Use File > Open.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.