Make sure to encode to utf-8, not the default encoding

This allows text fields to take unicode strings under python 2.
This commit is contained in:
Mike Lundy
2016-03-03 14:29:32 -08:00
parent c625981eb6
commit 8c3c57aa32
6 changed files with 24 additions and 7 deletions

View File

@@ -25,7 +25,7 @@
uInt64Field = 345678901234567890,
float32Field = -1.25e-10,
float64Field = 345,
textField = "baz",
textField = "\xe2\x98\x83",
dataField = "qux",
structField = (
voidField = void,