[jcifs] Having problem with simply connecting with release 1.2.9

Michael B Allen mba2000 at ioplex.com
Tue Nov 7 17:02:24 GMT 2006


Cp850 is the ONLY correct encoding when the server does not want Unicode
(at least on english systems). The Cp850 encoding just isn't supported
by all JREs. If you're going to set an alternateive encoding set "ASCII"
so that it there is a better chance of catching an error message when
non-ASCII characters are encountered.

Please post this to the said forum if possible.

Mike

On Tue, 07 Nov 2006 10:50:36 +0100
bnouyers at free.fr wrote:

> I found this on a forum:
> 
>         if (java.nio.charset.Charset.isSupported("IBM850")) { // JDK
>             jcifs.Config.setProperty("jcifs.encoding", "Cp850");
>         } else { // JRE
>             jcifs.Config.setProperty("jcifs.encoding", "Cp1252");
>         }
> 
> I correct my problem...
> 
> Bastien
> 


-- 
Michael B Allen
PHP Active Directory SSO
http://www.ioplex.com/


More information about the jcifs mailing list