Weird unicode character when using stdin stdout without buffer. #1822
Unanswered
techcatgato
asked this question in
Q&A
Replies: 3 comments 18 replies
-
Have played your scenario here on a prime hub with a non stable firmware on windows 11. Seen:
No garbage before What firmware do you use. (I did not remember...) Bert |
Beta Was this translation helpful? Give feedback.
1 reply
-
In pybricks-micropython actions The top entry is the latest. |
Beta Was this translation helpful? Give feedback.
7 replies
-
I have identified the character to be u\0001, But I still can't get rid of it or process it, even with the beta firmware i managed to install |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all! I "solved" my previous problem of using stdin stdout "normally" without a buffer with this code:
on hub:
on pc:
However. when i turn on this program i get:

Any attempt so far to get rid of the weird unicode character in the beginining didnt work, and make the hub disconnect. ive tried replace(), strip(), and getting [:1] and all of these make the hub disconnect. Modifying the pc code to handle this character in the if loop also disconnects. Do you know any way of getting rid of this character?
Beta Was this translation helpful? Give feedback.
All reactions