[jcifs] Re: Encoding Problems under Linux ?

Michael B Allen mba2000 at ioplex.com
Sun Nov 12 02:41:37 GMT 2006


Fixed. All instances of UnicodeLittle have been replaced with UnicodeLittleUnmarked.

Mike

On Wed, 19 Jul 2006 14:55:07 -0400
Michael B Allen <mba2000 at ioplex.com> wrote:

> Mmm, we used to use UnicodeLittleUnmarked. I wonder when that was
> changed. Stange. I'll add this to The List of things to investigate.
> 
> On Wed, 19 Jul 2006 09:47:43 +0000 (UTC)
> Michael Schlegel <lulog1 at yahoo.de> wrote:
> 
> > Hi !
> > 
> > I solved my problem by changing the Encoding in
> > Trans2FindFirstResponse.readString() from "UnicodeLittle" to
> > "UnicodeLittleUnmarked". This changes works under Linux, Windows and Solaris.
> > I use a SystemProperty to change between this to encodings if needed (default =
> > UnicodeLittleUnmarked).
> > 
> > Here is the changed Method (only the changed part):
> > 
> >     String readString( byte[] src, int srcIndex, int len ) {
> >         String str = null;
> >         try {
> >             if( useUnicode ) 
> >             {
> >                 // should Unicode alignment be corrected for here?#
> >                 boolean useUnmarkedEncoding = "true".equalsIgnoreCase(
> > System.getProperty( "jcifs.use.unmarked", "true" ) );
> >                 if( useUnmarkedEncoding )
> >                 {
> >                     str = new String( src, srcIndex, len,
> > "UnicodeLittleUnmarked" );                
> >                 }
> >                 else
> >                 {
> >                     str = new String( src, srcIndex, len, "UnicodeLittle" );
> >                 }
> >             } 
> >             else 
> >             {    
> > 
> > 
> 
> 
> -- 
> Michael B Allen
> PHP Extension for SSO w/ Windows Group Authorization
> http://www.ioplex.com/
> 


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


More information about the jcifs mailing list