[jcifs] Re: Encoding Problems under Linux ?
Michael B Allen
mba2000 at ioplex.com
Wed Jul 19 18:55:07 GMT 2006
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/
More information about the jcifs
mailing list