[jcifs] File naming problem

Michael B Allen mba2000 at ioplex.com
Sat Dec 31 07:19:13 GMT 2005


On Sat, 31 Dec 2005 05:41:55 +0100
Thomas Bley <thomas.bley at simple-groupware.de> wrote:

> I also tried:
> System.setProperty( "jcifs.encoding", "Cp1252" ); // gives test______?
> System.setProperty( "jcifs.encoding", "ISO8859_1" ); // gives test???
> System.setProperty( "jcifs.encoding", "UTF8" ); // gives test???
> System.setProperty( "jcifs.encoding", "ASCII" ); // gives test???

Try:

  System.setProperty( "jcifs.encoding", "Cp850" );

Running $ testparm -v | grep dos shows that Samba's default OEM encoding
is Cp850 which is MS-DOS Latin1 which is not the same as ISO-8859-1.

I think perhaps we should change the default OEM_ENCODING from the
file.encoding property to Cp850.

Mike


More information about the jcifs mailing list