Some months ago I just sett up a GNU/Linux server running samba for a SOHO client.

In my specific situation, we needed to access a Windows box (a so called shared folder) from the Linux box, however, the Linux box couldn’t read the remote files properly because of it’s special characters (Portuguese-Brazilian).

This command would solve the problem:

# mount.cifs // /mnt/local_folder -o iocharset=iso8859-1,codepage=cp850

Where “iocharset=iso8859-1,codepage=cp850″ specifies the right charset to get data from the windows box.

But remember to first assure that your local charset settings are correctly configured (can you read and write ç,õ.ó, etc in a local folder?).  If yes, then the procedure above will take care of remote SMB windows folders.