[Xesam] special characters in query string

Mikkel Kamstrup Erlandsen mikkel.kamstrup at gmail.com
Mon Aug 11 10:37:21 PDT 2008


2008/8/11 Michael Albinus <michael.albinus at gmx.de>:
> Hi,
>
> I want to send a user query for "<michael.albinus at gmx.de>". That
> doesn't seem to work, due to the < and > characters (tested with strigi).
>
> How can I encode such characters? Note, that sending a user query for
> "michael.albinus at gmx.de" has no problems, but for some reasons I need
> the full email address in the query. Or is it just a bug, that the
> query is not performed?

The < and >'s needs to be XML escaped at the minimum. Since a user
query is encapsulated in XML, ie:

<request>
  <userQuery>
    &lt;michael.albinus at gmx.de&gt;
  </userQuery>
</request>

So, are you using any client libs, or just the raw dbus interface? And
what version of strigi are you running?

Cheers,
Mikkel


-- 
Cheers,
Mikkel


More information about the Xesam mailing list