WinSCP to Ubuntu SFTP charset problem

olopopo fraga.muerete at gmail.com
Thu Feb 12 07:10:44 UTC 2009


2009/2/12 Matthew Flaschen <matthew.flaschen at gatech.edu>

> 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?


No sorry, it was only an issue with the contents...


>
>
> > 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.


But since the clients need to access the webpages later through winscp (to
modify them or change anything) I should have the contents of the files
unchanged in the ubuntu box so it can be decoded by Windoze at any time.

Is that right?


>
>
> >>> 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.


Ok, sorry I didn't notice. convmv does it for filenames, iconv for contents.

>
>
> Matt Flaschen



Marcos Lorenzo de Santiago,
Thank you again :)


>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090212/e8be2d20/attachment.html>


More information about the ubuntu-users mailing list