libsmbclient, i18n

Stephan Kulow coolo at kde.org
Tue Sep 30 20:54:47 GMT 2003


Am Dienstag, 30. September 2003 20:51 schrieb Sorin Manolache:
> Hello,
>
> I'm developing an application which uses libsmbclient. It works fine if I
> do not use "special" characters, in my case Swedish ones (å, ö, ä).
>
> If my smb URI contains 'ö' (0xf6) for example, then the same 'ö' (0xf6)
> appears on the server side (I've looked in log.smbd) and it works as long
> as there is a Unix smbd server on the server side. However, smbc_open
> fails if the remote machine runs Windows.
>
> How can I make it work? Do I have to convert the smb URI somehow (how?)
> before I pass it smbc_open or do I have to configure libsmbclient somehow
> (how?) such that it performs the translation for me or do I have to
> recompile samba/libsmbclient with additional options (which?) ?
>
You need to pass it as UTF-8 encoded chars. If I used my iconv right, 'ö' 
should be %b6%c3

Greetings, Stephan

-- 
Pace Peace Paix Paz Frieden Pax Pokój Friður Fred Béke 和平
Hasiti Lapé Hetep Malu Mир Wolakota Santiphap Irini שלום Peoch
Shanti Vrede Baris Rój Mír Taika Rongo Sulh Py'guapy 평화



More information about the samba-technical mailing list