Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
Уберите из пути ? 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
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .