LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Bashing problem. (https://www.linuxquestions.org/questions/linux-newbie-8/bashing-problem-647958/)

hashbangbinbash 06-09-2008 03:53 AM

Bashing problem.
 
I have a directory full of names with special characters like Utopía, µ-Ziq, Raz¢n and Monotónu.

When I try to ftp these files the client (XP) creates the folder in my local directory but they are empty because the server (Gentoo) isn't finding the files, I think due to these special characters that the remote Gentoo box isn't recognizing.

I've want to create a script that will decend into these directories changing all "í" for instance into "i", so that I can copy these directories and their files, can someone show me what a script like that might look like please, or just tell me if there's a simpler way how I can get the server to copy over the files I want despite the names?

unSpawn 06-09-2008 05:14 AM

Writing a script for this is IMHO a last resort option: you want to address the cause, not the symptoms. What FTP daemon are you running? Can you run it with full verbose and debug logging on? If you then try to create the files with your XP client, what do the logs say? And when you then try to create those files with a FTP client on the remote server itself?

hashbangbinbash 06-09-2008 08:42 AM

I'm using FileZilla. I think I can run it with full verbose on. What happens is that the client creates the files I am trying to download from the remote server, but then they are empty when on the remote server they contain several files but named with these exotic characters. So the names are being created locally but remotely the request to send files with those names fails as the names arent recognized. I'm pretty sure it's a character set thing, but I don't know how to make the server use that character set, or what character set it is exactly.

ps- thanks for the response,

lwasserm 06-09-2008 09:10 AM

Not exactly a solution, but could you zip or tar (& perhaps gzip also) the files with a name recognized on both ends, and untar at the receiving end?

hashbangbinbash 06-09-2008 10:26 AM

Quote:

Originally Posted by lwasserm (Post 3179284)
Not exactly a solution, but could you zip or tar (& perhaps gzip also) the files with a name recognized on both ends, and untar at the receiving end?

I disagree, I would say that is precisely a solution.;)


All times are GMT -5. The time now is 03:33 PM.