175
175
raise ValueError("invalid rio tag %r" % (tag,))
176
176
if tag is not None: # add last tag-value
178
(tag, PyUnicode_DecodeUTF8(accum_value, accum_len-1, "strict")))
178
(tag, PyUnicode_DecodeUTF8(accum_value, accum_len-1, "surrogateescape")))
179
179
return Stanza.from_pairs(pairs)
180
180
else: # didn't see any content