Update: 2021-01-08
001. SFTP插件 / 遠(yuǎn)程連接服務(wù)器 / 報(bào)錯(cuò)
使用SublimeText4遠(yuǎn)程連接服務(wù)器颊乘,編輯服務(wù)器的代碼文件中姜,出現(xiàn)報(bào)錯(cuò):
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
大致是說“編碼錯(cuò)誤爬范,請(qǐng)指定編碼”捺檬,搜索報(bào)錯(cuò)提示的源文件毁菱,嘗試指定編碼類型窄瘟,無果衷佃。
解決:
- SFTP插件配置的默認(rèn)路徑下有中文文件名,將其改為英文即可
(訪問無中文文件名的路徑時(shí)蹄葱,不會(huì)報(bào)錯(cuò))