I'm using the reddit-flair-bot for my subreddit.
If you're not familiar with this, it's a python script that handles incoming PMs from users, where it takes the subject as the flair class and the content of the PM as the flair text.
That's just a bit of context, but here's the important part - by default, you cannot send a blank PM on reddit. This means users must have text when sending the PM (meaning they must also have text next to their name).
We've recently found a workaround to this issue, where you can insert a blank character instead, and it will be identified as a character (so the PM will send) but it will show up as nothing next to your name. I'm talking about an actual blank character and not a blank space (alt+0143
and alt+0173
fulfill this criteria).
The problem is that the bot uses PRAW, and PRAW can't seem to detect the blank unicode character. So the script doesn't run properly.
It comes with the error:
UnicodeEncodeError: 'ascii' codec can't encode characters in position 19-20: ordinal not in range(128)
Is there any way to work around this? I hope I've explained my situation clearly.