Singpolyma

singpolyma tweeted, “Can I concat ascii string in python with “string” of binary data? ‘ascii’ codec can’t decode byte 0xff in position 6 /cc @var?sngpl.ma/t46Y4@ 2010-182 20:50 UTC

2 Responses

wolever

@singpolyma because one of the strings is actually a Unicode string. You’ve got to explicitly encode unicode strings?

wolever

@singpolyma ? and the ?can’t decode byte? error usually happens when it is being automatically coerced.

Leave a Response