1

I manage a website that is based on directory listings (dessin.acswift.com).

The website is in French, and many of the urls contain accents:

/leçon 1 - identification & vocabulaire.html

I would like to be able to work on the site using SSH and SFTP, using Terminal on a Mac.

The problem is that when I SSH/SFTP to the server, the address above becomes:

/le?on 1 - identification & vocabulaire.html

The ç becomes a ?.

So, for example, when I want to SFTP a file to:

le?on 4 - origine, terminaison & action

I cannot figure out how to CD to the directory I want -- I can't type the ç character in a way that the server will recognize. The asterisk wildcard helps sometimes but not always.

Is there a way to use SSH/SFTP using UTF-8 characters?

[update] Here is the output of locale (my local computer which displays the accents correctly):

LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL=

The Apache server doesn't recognize lang or locale.

Andy Swift
  • 87
  • 2
  • 13

1 Answers1

1

Instead of trying to get "sftp" to do the right thing (a lost cause in many cases) I have found that using "sshfs" to mount the remote location locally makes it so much easier to work with remote files. As an added bonus you get to keep your shell's tab completion, and you can even edit remote files without having to copy them back and forth.

You did say that your local machine recognizes the names fine, so I guess sshfs will do the trick.

chutz
  • 7,888
  • 1
  • 29
  • 59