[jcifs] Encoding problem
Kmachine
kmachine at un-nerv.net
Thu Aug 7 21:05:58 EST 2003
Hello list,
I have a problem about the encoding support of jCIFS. I'm from Spain and
I have directories shares with accents (in spanish, of course) like
'Música' (Music) or 'Películas' (Movies) with Windows XP, and it seems
that jCIFS don't handles the accents because when I try to make a
SmbFile to list the content of that directories an exception is reaised:
Look this:
jcifs.smb.SmbException: The network name cannot be found
at jcifs.smb.SmbTransport.send(SmbTransport.java:496)
at jcifs.smb.SmbSession.send(SmbSession.java:107)
at jcifs.smb.SmbTree.treeConnect(SmbTree.java:124)
at jcifs.smb.SmbFile.connect(SmbFile.java:579)
at jcifs.smb.SmbFile.connect0(SmbFile.java:549)
at jcifs.smb.SmbFile.sendTransaction(SmbFile.java:525)
at jcifs.smb.SmbFile.listFiles(SmbFile.java:1446)
at jcifs.smb.SmbFile.listFiles(SmbFile.java:1422)
at jcifs.smb.SmbFile.listFiles(SmbFile.java:1303)
at org.c2dt.wlm.WLMSmbScanner.listarDirectorio(WLMSmbScanner.java:56)
at org.c2dt.wlm.WLMSmbScanner.listarDirectorio(WLMSmbScanner.java:64)
at org.c2dt.wlm.WLMSmbScanner.<init>(WLMSmbScanner.java:35)
at org.c2dt.wlm.WLMSmbScanner.main(WLMSmbScanner.java:81)
This is only raised if the shared have accents.or other special
characters. I have tried with jcifs.Config.setProperty("jcifs.encoding",
"ISO8859_1") and/or
jcifs.Config.setProperty("jcifs.smb.client.useUnicode", "false") but
then the special punctuation characters of spanish are lost.
Also I want to ask about the support of long shared names, I think that
neither Samba o JCIFS can't handler it at this time. Please help! :-)
Greetings from Spain (and sorry for my poor english level).
More information about the jcifs
mailing list