# Decode Bytes To String

**URL:** <https://forum.robotframework.org/t/decode-bytes-to-string/604>\
**Category:** Robot Framework\
**Created:** [17 August 2020 05:35 UTC](https://forum.robotframework.org/t/decode-bytes-to-string/604 "2020-08-17T05:35:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sugar](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@sugar](https://forum.robotframework.org/u/sugar)\
**Post date:** [17 August 2020 05:35 UTC](https://forum.robotframework.org/t/decode-bytes-to-string/604/1 "2020-08-17T05:35:26Z")

</div>

This keyword has failed to decode string either on Python 2 or 3. Anyone has any idea on how to use this keyword and pass it?

Error Message: TypeError: Can not decode strings on Python 3.

 ![Screen Shot 2020-08-17 at 1.34.34 PM](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/1X/4d3d78696bff9b48c7c0b29c4e7e0dc1614a9cf5.png)

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [17 August 2020 09:51 UTC](https://forum.robotframework.org/t/decode-bytes-to-string/604/2 "2020-08-17T09:51:52Z")

</div>

Images screenshots look nice, but they don’t allow to copy and reproduce your problem.  
@sCan you paste a code block?

---

<div class="post-metadata">

**Author:** ![Noordsestern](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/noordsestern/32/4270_2.png) [@Noordsestern](https://forum.robotframework.org/u/Noordsestern)\
**Post date:** [18 August 2020 12:35 UTC](https://forum.robotframework.org/t/decode-bytes-to-string/604/3 "2020-08-18T12:35:12Z")

</div>

What is the error on python 2 then?
