Convert special characters ±±±± to ------- in transfer

Advertisement

Jens Jespersen
Joined:
Posts:
1
Location:
Denmark

Convert special characters ±±±± to ------- in transfer

Hi
I have this filename ANL±±AP10±±±±±±M$LSK.±BR@ND±MED±1±PUMPE±±±±±±±±±±±TM003557.model and will like to copy to PC, no problem if PC are working in English, but if it is an Chinese PC, the special ± are converted to some special Chinese characters that can§t be used.

I will like to convert the ± to - when I do the transfer, is this possible?

Jens

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
35,439
Location:
Prague, Czechia

Re: Convert special characters ±±±± to ------- in transfer

Jens Jespersen wrote:

I will like to convert the ± to - when I do the transfer, is this possible?
First you need to find how the conversion happens. It may happen implicitly in the OS or explicitly by WinSCP if it considers the remote filename to be UTF-8 encoded. What protocol are you using?
Then you can instruct WinSCP to URL-encode these characters, by manually editing following registry key:
REGEDIT4

[HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\Configuration\Interface\CopyParam]
"LocalInvalidChars"="/%5C:%2A%3F\"<>|"
(note that some special characters are also URL-encoded in the configuration).

Reply with quote

martin
Site Admin
martin avatar

Re: Convert special characters ±±±± to ------- in transfer

Note that the recent versions of WinSCP can transfer files with any characters in their names without any conversion.

Reply with quote

Advertisement

You can post new topics in this forum