[jcifs] URL encoding

Michael B Allen mballen at erols.com
Sat Mar 9 14:16:53 EST 2002


On Sat, 09 Mar 2002 11:25:54 +0900
"Talbot David" <chukhonets at hotmail.com> wrote:

> Michael & Chris
> 
> Thanks for both of your replies. (Sorry for confusing matters with the wrong 
> path in my exampe. Actually it is set as 
> smb://server/share/encodedDirectoryName.)
> 
> The conversion to unicode was done using the native2ascii tool with the 
> encoding set to the platform's default.But a packet trace showed that the 
> "use unicode flag" is not set when the share is accessed using the standard 
> windows client,

What "standard windows client"? The smbclient program will not negotiate
Unicode (actually the latest and greatest might but I don't think vanilla
2.2 does).

> and the non-ascii characters seem to have their native 
> encoding values. I suppose treating the path as a byte array should work. 
> I'll give it go.

It sounds like the server is negotiating ASCII (a.k.a the platform
dependent 8 bit codepage). If this is indeed the case you are in uncharted
territory.

Mike

-- 
May The Source be with you.

#################################################################
#################################################################
#################################################################
#####
#####
#####
#################################################################
#################################################################
#################################################################

#################################################################
#################################################################
#################################################################
#####
#####
#####
#################################################################
#################################################################
#################################################################




More information about the jcifs mailing list