[Xapian-discuss] std::string arguments presumed to be UTF8?

James Aylett james-xapian at tartarus.org
Mon Nov 14 18:23:40 GMT 2011


On 14 Nov 2011, at 18:00, Liam wrote:

> So does the TermGenerator interpret a std::string argument as utf8?

Yes.

> If so, either that should be documented, or it should take a std::wstring.

Yes to the former, no to the latter (wstring means a basic_string<wchar_t>; wchar_t is generally 32 bits wide, and should in general not contain encoded bytestrings).

J

-- 
 James Aylett
 talktorex.co.uk - xapian.org - devfort.com




More information about the Xapian-discuss mailing list