Windows200000 / TwitchDropsMiner-updated

An app that allows you to AFK mine timed Twitch drops, with automatic drop claiming and channel switching.
MIT License
350 stars 16 forks source link

UnicodeEncodeError: 'gbk' codec can't encode character '\ud734' in position 31: illegal multibyte sequence #135

Open hurentian opened 4 months ago

hurentian commented 4 months ago

While I was getting BlackDesert Drops, something went wrong.

image

22:45:45: Fatal error encountered:
22:45:45: 
22:45:45: Traceback (most recent call last):
22:45:45:   File "C:\Users\Administrator\Desktop\TwitchDropsMiner_2024-5-fix\main.py", line 160, in main
22:45:45:     await client.run()
22:45:45:   File "C:\Users\Administrator\Desktop\TwitchDropsMiner_2024-5-fix\twitch.py", line 772, in run
22:45:45:     await self._run()
22:45:45:   File "C:\Users\Administrator\Desktop\TwitchDropsMiner_2024-5-fix\twitch.py", line 1017, in _run
22:45:45:     self.watch(new_watching)
22:45:45:   File "C:\Users\Administrator\Desktop\TwitchDropsMiner_2024-5-fix\twitch.py", line 1211, in watch
22:45:45:     self.print(status_text)
22:45:45:   File "C:\Users\Administrator\Desktop\TwitchDropsMiner_2024-5-fix\twitch.py", line 736, in print
22:45:45:     self.gui.print(message)
22:45:45:   File "C:\Users\Administrator\Desktop\TwitchDropsMiner_2024-5-fix\gui.py", line 2190, in print
22:45:45:     print(f"{datetime.now().strftime('%Y-%m-%d %X')}: {message}")
22:45:45: UnicodeEncodeError: 'gbk' codec can't encode character '\ud734' in position 31: illegal multibyte sequence
22:45:45: 
22:45:45: Exiting...
22:45:47: 
22:45:47: Application Terminated.
22:45:47: Close the window to exit the application.

OS: Windows Server 2012 R2 Datacenter

dogodogowoof commented 4 months ago

I also got 2 random terminations in a row, but now it's back to running well again.

Windows200000 commented 4 months ago

It's a channel name containing this.

Also, why is nobody using the issue templates?