WinSCP to Ubuntu SFTP charset problem
olopopo
fraga.muerete at gmail.com
Wed Feb 11 23:50:44 UTC 2009
2009/2/11 Matthew Flaschen <matthew.flaschen at gatech.edu>
> olopopo wrote:
> > Hi everyone!
> >
> > I'm guessing if one of you has ever had this issue when copying files
> from
> > Windoze to Ubuntu:
> >
> > I have a Windoze box that runs a WinSCP (SFTP client) against a Ubuntu
> SSH
> > (SFTP server). Everything works fine when I copy files, but when files
> have
> > special characters (Windoze's language is Spanish, so text may have
> ñ,á,ó,
> > and so) the Ubuntu server (utf8) shows them as a unrecognized char.
>
> 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
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.
> > On WinSCP files show OK, then this makes me guess that WinSCP always uses
> > iso8859-1 or iso8859-15 even if you set the force option to utf8.
>
>
> >
> > Does anyone had this problem?
>
> See
>
> http://lists.nongnu.org/archive/html/rdiff-backup-users/2009-01/msg00053.html
> (read the whole thread). It's basically the same problem, except you
> use ISO/IEC 8859-15 (but are you sure it's not Windows-1252) instead of
> cp1250.
>
>
> > 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?
>
> > Is WinSCP's fault?
>
> The root problem is probably that your filenames are stored in
> Windows-1252, not UTF-16.
>
> If this is so (that i guess) Is there a GPL/free win32
> > SFTP (version 5) client out there?
>
> You know WinSCP is GPL, right? You can try Putty
> (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html<http://www.chiark.greenend.org.uk/%7Esgtatham/putty/download.html>
> ),
> though, which is under a free license (MIT) but not GPL. PSFTP is the
> SFTP client.
>
> > my only hope is that I find a SFTP java client that supports conversion
> to utf8.
>
> Why Java?
Nevermind... work hours... :P didn't see the "root" of the problem, thanks!!
:)
>
> Matt Flaschen
>
Thanks,
Marcos Lorenzo de Santiago.
>
> --
> 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/c0cd767a/attachment.html>
More information about the ubuntu-users
mailing list