From: Sebastian Spaeth Date: Mon, 11 Jul 2011 09:39:42 +0000 (+0200) Subject: python: Encode query string as a utf-8 byte array X-Git-Tag: 0.7_rc1~15 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=504b6242d1fd67d04ee236fc92a54ca39fd682f7;hp=504b6242d1fd67d04ee236fc92a54ca39fd682f7;ds=sidebyside python: Encode query string as a utf-8 byte array If we pass in an unicode instance as query string, we would probably get weird behavior (and indeed do so, see mail id:"20110707113700.GA16347@megatron"). If a unicode instance is passed in, make sure we encode it properly to an utf-8 encoded byte string. Signed-off-by: Sebastian Spaeth ---