convert "wchar_t *" with null bytes to python unicode

Issue #249 resolved
Armin Rigo
created an issue

From Tin on the mailing list:

""" I'm trying to get Python unicode objects from a wchar_t* and its length. ffi.string worked great until I needed to allow null bytes in the string. The docs suggest using ffi.buffer, but I'm not sure how to get a Python unicode string from a buffer once I have it. What am I missing? """

Comments (2)

  1. Log in to comment