[jcifs] cp850 problems

Richard Caper rcaper at gmail.com
Mon Jun 5 17:08:10 GMT 2006


Line 127 of jcifs.smb.SmbConstants:

    static final String OEM_ENCODING = Config.getProperty(
"jcifs.encoding", "Cp850" );


i.e. if you don't define jcifs.encoding as something else it will
always default to cp850.

On 6/5/06, Mike Streeton <mike.streeton at ardentia.co.uk> wrote:
> Thanks for this. I have dumped out jcifs.encoding using
> jcifs.Config.list(), but this is showing no value being set the system
> property for file.encoding is cp1252. Where would it get the default
> from. We are running the same code on several machines, but one machine
> always fails, they are all on the same network etc same language etc. An
> ideas?
>
> Mike
>
> www.ardentia.com the home of NetSearch
>
> -----Original Message-----
> From: Michael B Allen [mailto:mba2000 at ioplex.com]
> Sent: 05 June 2006 17:18
> To: Mike Streeton
> Cc: jcifs at lists.samba.org
> Subject: Re: [jcifs] cp850 problems
>
> On Mon, 5 Jun 2006 17:00:29 +0100
> "Mike Streeton" <mike.streeton at ardentia.co.uk> wrote:
>
> > We have a directory browser that is very similar or NetworkExplorer.
> > This works okay except on one of our machines where we get the
> following
> > error:
> >
> > java.io.UnsupportedEncodingException: Cp850
> >         sun.io.Converters.getConverterClass(Unknown Source)
> >
> > We are using 1.2.9 of the jar, where does it pick the cp850 up from?
> Is
> > it user/system/environment.
>
> jcifs.encoding
>
> See the overview page of the API documentation for details.
>
> Mike
>
> --
> Michael B Allen
> PHP Extension for SSO w/ Windows Group Authorization
> http://www.ioplex.com/
>


More information about the jcifs mailing list