# Devices二进制值解析出错

**URL:** <https://bbs.aprbrother.com/t/devices/1720>\
**Category:** BLE Gateway\
**Created:** [December 9, 2020, 9:31am UTC](https://bbs.aprbrother.com/t/devices/1720 "2020-12-09T09:31:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiualen](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/k/b9bd4f/32.png) [@kiualen](https://bbs.aprbrother.com/u/kiualen)\
**Post date:** [December 9, 2020, 9:31am UTC](https://bbs.aprbrother.com/t/devices/1720/1 "2020-12-09T09:31:13Z")

</div>

使用python3.6处理devices列表值时，提示“UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xa6 in position 6: invalid start byte”，这个该怎么处理？

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [December 10, 2020, 4:06am UTC](https://bbs.aprbrother.com/t/devices/1720/2 "2020-12-10T04:06:56Z")

</div>

> [@kiualen](#):
>
> UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xa6 in position 6: invalid start byte

请问你是采用msgpack这个库来解析devices列表吗？我们也有写好的 [python示例](https://github.com/AprilBrother/ab-ble-gateway-sdk/tree/master/gateway-v4/examples/python/mqtt-client)。但是这个示例是python 2.x的
