[linux-cifs-client] iocharset iso8859-1 vs cp1252

simo idra at samba.org
Mon Oct 16 23:35:08 GMT 2006


On Mon, 2006-10-16 at 16:56 -0500, bugzilla KevinH wrote:
> It is my understanding that although very similar, there are subtle
> differences
> ( http://mail.python.org/pipermail/xml-sig/2001-May/005509.html )
> between iso8859-1 and Windows-1252, especially in the area of the C1
> Control Code set
> ( http://en.wikipedia.org/wiki/C0_and_C1_control_codes and
> http://en.wikipedia.org/wiki/Windows-1252 ).
> 
> I have a file on a Windows 2003 server which I believe is using the
> 0x0096 EN-DASH character in the filename, and I am finding this file
> impossible to read from a linux box using mount -t cifs -o
> iocharset=iso8859-1.  I don't seem to be able to assign
> iocharset=cp1252 which is what I want.  It appears to me that a cp1252
> doesn't even exist ( http://lxr.linux.no/source/fs/nls/?v=2.6.18 ).
> Is there some reason for this?  Am I completely mistaken in all of
> this, and there is really some other silly reason I cannot read the
> file?

Why don't you just use utf8 ?
Windows uses utf16 so utf8 is the best match.

Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer
email: idra at samba.org
http://samba.org



More information about the linux-cifs-client mailing list