kuper-adrian / statg-bot

Discord bot that posts PUBG statistics in your discord channel
MIT License
3 stars 2 forks source link

Hello! How can I change the encoding? #1

Closed trololo151 closed 6 years ago

trololo151 commented 6 years ago

Tell me please how to change the encoding, the Russian language is displayed in hieroglyphs

trololo151 commented 6 years ago

GameStat, Player..����� �����

kuper-adrian commented 6 years ago

Hi, to be honest, I never really thought about encodings or special characters when coding statg-bot, so I can't really anwer your question immediatly. But, if you would like to share the username you used to get these strange results, I will look into it and might be able to find a solution.

trololo151 commented 6 years ago

I did not understand. What name should I specify? If you change the GametTod to a Russian word in the stats-cmd-handler.js file, then the bot writes instead of Russian words the signs in the discord ??? ???? ???? ????

kuper-adrian commented 6 years ago

Ah ok, you are coding yourself not just using the bot, cool. Sadly, I still can't quite follow on what you did and couldn't replicate similar results during some quick testing. What do you mean by "GametTod"? Maybe you could name the exact line you changed and the Russian words you used?

trololo151 commented 6 years ago

File stats-cmd-handler.js name: 'GameMod', value: gameMode, inline: true, I wrote in Russian name: 'Режим' and in a bot in a discord in the place of my word writes ???

kuper-adrian commented 6 years ago

Hm, looks like you are using a text editor which is set to use ANSII encoding. Which editor are you using? Changing the encoding of your text editor to UTF-8 should solve your problem.

trololo151 commented 6 years ago

haha, actually made notepad++ and it turned out, huh, I'm a fool

kuper-adrian commented 6 years ago

Cool, happy to see your problem solved :D Closing this issue then