moonstar-x / discord-tts-bot

A Text-to-Speech bot for Discord.
https://docs.moonstar-x.dev/discord-tts-bot
MIT License
98 stars 84 forks source link

logger can't show Chinese character #19

Closed ChiseLai closed 4 years ago

ChiseLai commented 4 years ago

Hello there I am a new user to github, where I have clone the bot and use it on my server altho it works successfully for Chinese language, but everytime when a user use the command say with Chinese words together, the cmd logger seems to be failed on displaying the Chinese character I have tried to change default CodePage of the cmd prompt to 65001 (unicode) but it still fails to show it Are there any way to fix this issue?

moonstar-x commented 4 years ago

Hey there, do you mind sharing a screenshot of your console?

moonstar-x commented 4 years ago

image

I just tried it with korean and chinese characters and they both show up on my end. Are you by any chance using cmd on windows?

ChiseLai commented 4 years ago

Sorry for reading that late And yes, I’m using cmd to launch the bot Is there other method to start the bot on window?

-edit- I’m quite new with making discord bot, sorry if I’m asking something that might sounds stupid xD I will post the cmd logger if you need it

moonstar-x commented 4 years ago

It seems that it's got something to do with the font that cmd uses, which doesn't support UTF-8 characters. Maybe try changing the font as this SuperUser thread suggests. Moreover, I recommend you ise Windows Terminal (available from the Microsoft Store) rather than cmd.

ChiseLai commented 4 years ago

Gotcha, Imma give it a try if thats the case Hope it works smoothly, Thanks :D

ChiseLai commented 4 years ago

It works, thanks a lot for the support and willing to answer my dumb question 😂

moonstar-x commented 4 years ago

No worries, I'm glad you managed to fix it! :)