I'm having trouble copying files with UTF-8 characters using pscp on Windows. I'm using command line for that and following command:

chcp 65001
pscp -scp -p -pw {pass} -batch "user@remote_host:/Справочник/file.txt" "E:\Справочник\file.txt"
scp: E:/??????????/file.txt: Cannot create file

As shown I get scp: E:/??????????/file.txt: Cannot create file error. How can I transfer files with UTF-8 characters in their path?

  • Уберите из пути ? Not use in path ? chcp 866 – STTR Jun 16 '14 at 12:01
  • I have to work with all characters, not only Cyrillic. – matt Jun 16 '14 at 12:25
  • Use Lucida console fonts and chcp 65001 – STTR Jun 16 '14 at 12:39

Application registry setting UTF-8 font (example:cmd)

Use path to pscp

Way-1, powershell:

Application path, change \ to _:


SL HKCU:\Console;NI $app;SL $app

New-ItemProperty . FaceName -t STRING -va "Lucida Console"
New-ItemProperty . FontFamily -t DWORD -va 0x00000036

enter image description here

Need allow local powershell script:

powershell -command "Set-ExecutionPolicy RemoteSigned"

And run:

powershell .\AppUTF8Font.ps1

Way-2, reg-file:

Or use reg-file:


"FaceName"="Lucida Console"

Command line:


Delete setting reg-file:



Command line:

REG IMPORT Cmd_UTF8_Delete.reg

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.