WinSCP to Ubuntu SFTP charset problem
Matthew Flaschen
matthew.flaschen at gatech.edu
Thu Feb 12 04:22:19 UTC 2009
olopopo wrote:
>> This is just an issue with the filenames, right?
>
>
> Ok, I misunderstood the root of the problem, windows uses whatever is the
> default for spanish windows, which is cp1252 as you say and Ubuntu uses
> utf8, so what I need is either to convert the textfiles codification to utf8
You need to clarify. Is it the filenames that are the issue, or the
file content, or both?
> or make Apache's default charset to iso8859-1 so the webserver displays html
> properly, right? Eerm, ok, I guess I didn't explained the scenario very
> well... sorry, I have win32 clients that winSCP (sftp) websites to ubuntu
> server, so what I really need is Apache decodes properly de textfiles.
Okay... From this I think you mean the files' content are also in
cp1252. In that case, you can either serve it as such (windows-1252) or
preferably convert it to a standard encoding (e.g. utf-8) like you said.
>>> I know i can iconv the text files after copying, but that's just a poor
>>> patch.
>> You know about convmv (http://www.j3e.de/linux/convmv/man/)?
>>
>
> Yeah, I guess it does the same as iconv (http://linux.die.net/man/1/iconv),
> no?
iconv does not have any built-in file renaming features.
Matt Flaschen
More information about the ubuntu-users
mailing list