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 //192.168.0.30/remote_folder /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.

References:
http://en.wikipedia.org/wiki/ISO_8859-1

http://casa.colorado.edu/~ajsh/iso8859-1.html

http://en.wikipedia.org/wiki/Code_page_850