Update: 2021-01-08
001. SFTP插件 / 遠程連接服務(wù)器 / 報錯
使用SublimeText4遠程連接服務(wù)器,編輯服務(wù)器的代碼文件,出現(xiàn)報錯:
SFTP An encoding error was encountered trying to read from the server. Please adjust the "remote_encoding"setting in sftp-config. json.
Common encodings include:
"utf-8": Default and most common encoding
"cp1252"or "iso-8859-15": Danish, Dutch, English, French, German, Icelandic, Italian, Norwegian, Spanish, Swedish and Portuguese
"cp1250": Albanian, Bosnian, Croatian, Czech, Hungarian, Polish, Romanian, Serbian(Latin Script), Slovak and Slovene
"cp1251": Bulgarian, Russian and Serbian(Cyrillic)
"cp1253": Modern Greek
"cp1254": Turkish
"cp1255": Hebrew
"cp1256": Arabic, Persian and Urdu
"Cp1257": Estonian, Latvian and Lithuanian
"Cp1258": Vietnamese
大致是說“編碼錯誤,請指定編碼”,搜索報錯提示的源文件,嘗試指定編碼類型,無果。

SFTP遠程連接服務(wù)器錯誤.png
解決:
- SFTP插件配置的默認(rèn)路徑下有中文文件名,將其改為英文即可
(訪問無中文文件名的路徑時,不會報錯)