LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Samba extended character encoding (https://www.linuxquestions.org/questions/linux-server-73/samba-extended-character-encoding-601466/)

Calab 11-21-2007 10:47 AM

Samba extended character encoding
 
I have several files whose filename contain extended characters. These files were created on a Windows machine and the files later copied to my Debian smb share.

Windows PC's see the filename as it should be. Linux displays "junk" characters in place of the extended character.

For example:

Windows PC: Visée
Linux PC: Vis�e

Windows PC: Bourrée
Linux PC: Bourrée

Is there any way that I can correct this issue? I'm currently running Debian lenny.

erichgamba 12-09-2007 09:13 AM

convmv
 
This might help. See below, I found this under the following link:

ubuntuforums.org/archive/index.php/t-3061.html

------------------

Windows partitions use CP850 encoding, not ISO-8859-1 encoding. If you are unfortunate enough to transfer files from a Windows partition to an ext3 partition, and you forget to mount the partition using nls=utf8, you need to convert your filenames using:


convmv -f cp850 -t utf-8 -r *.*

There are Nautilus scripts and Konqueror service menus available that will perform this operation for you as well.

If you have archives of ISO-8859-1 encoded files, you need use the following to convert the filenames of your extracted files to UTF-8:


convmv -f iso-8859-1 -t utf-8 -r *.*

convmv can handle many different encodings:


convmv --list


All times are GMT -5. The time now is 11:38 AM.