Re: Issue 23 in xappy: Use a unicode interface

0 views
Skip to first unread message

xa...@googlecode.com

unread,
Jul 16, 2010, 1:58:19 PM7/16/10
to xappy-...@googlegroups.com

Comment #3 on issue 23 by cgrebs: Use a unicode interface
http://code.google.com/p/xappy/issues/detail?id=23

At least accept unicode for input. If you return utf-8 that's fine if it's
a documented behaviour.

A simple if isinstance(input_string, unicode): input_string.encode('utf-8')
should suffice.

xa...@googlecode.com

unread,
Jul 17, 2010, 4:27:44 AM7/17/10
to xappy-...@googlegroups.com

Comment #4 on issue 23 by boulton.rj: Use a unicode interface
http://code.google.com/p/xappy/issues/detail?id=23

The current behaviour is meant to be to accept str (and assume the encoding
is utf8) or unicode (which is internally converted to a utf8 string). All
strings are returned as utf8 encoded "str"s. If you find a place in the
API where this isn't true, please comment here.

Reply all
Reply to author
Forward
0 new messages