Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-06-2013, 08:18 AM   #1
LQ Newbie
Registered: Feb 2013
Posts: 1

Rep: Reputation: Disabled
Angry Unrecognized characters in folder names in folders created via Putty

Hi there!

I don't know whether this is the correct place for this post... Anyway:

I'm facing a problem that is driving me crazy:

Imagine that I have a Linux server and there are several clients that use Putty (from a Windows machine) to connect with the Linux server and create directories (could be files as well) with "mkdir".

The problem is that, with Putty, you can use any encoding (CP1250..., ISO-'s, etc) and if you introduce "non-standard" characters like , , (for German for example), later, using the terminal inside the Linux server (UTF-8), I cannot browse into those folder, since these characters are not well recognized.

(I was able to reproduce this problem using a Linux VM in a Windows environment and using Putty with different encodings to connect it.)

Any ideas of what can I do? Any clue?

I created a Python script to try to recognize the encoding what it is not accurate 100%. I know I can use convmv to change the encoding of the folder name but I need to know first which encoding was used.

Thanks in advance!
Old 02-06-2013, 08:38 AM   #2
LQ Guru
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,905

Rep: Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921
probably you can try something like this:
dos charset = <I do not know>
unix charset = ascii
But i'm not really sure. Also you can use a cronjob or process to rename files, but in that case users will report missing/lost files.
Old 02-06-2013, 09:15 AM   #3
Senior Member
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Is locale setting same for both your Windows system and Linux server?

Can you once try to open any of those directories in this way:-
Just type first 1 or 2 or 3 characters of a directory name and hit tab key from the keyboard. Linux shell will then automatically insert bachslashes (\) before any special characters in dir. name.
~$ cd sam[tab]
~$ pwd
Second, if any file/dir. name has some special or unrecognized characters, then you can put the file/dir. name in double-quotes like:
~$ cd "s@mple file"
Although this is just based on my experience, but you can try it. If it don't help, then share some file/name as it's showing in Linux.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Script to delete folders (whose names are in format XXXmmdd) but leave latest folder AntBla Linux - Newbie 4 10-04-2012 04:41 AM
Why are no application folders being created in home folder? usernameinuse Linux - Newbie 3 06-15-2010 03:25 AM
Need to rename files and folders with invalid characters in the names laureynsr Linux - Newbie 5 04-01-2009 04:13 PM
Can't cd into created folders in Documents Folder either on Desktop or in File System bparkerson04 Linux - Newbie 2 01-20-2009 01:44 AM
Can i limit new file names created to 8 characters with samba ? amitsharma_26 Linux - Networking 1 12-16-2005 06:42 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration