AgustinSRG / Pokemon-Showdown-Node-Bot

Pokemon Showdown Bot for Node (Deprecated)
Other
34 stars 150 forks source link

Unicode characters on nicknames causes failures on login process #29

Closed danimesq closed 8 years ago

danimesq commented 8 years ago

I have an bot called 'Espelho Bobágico", and the "Á" isn't recognized.

Ecuacion commented 8 years ago

Fixed in 6c5c0ec09829be5ccb63d2d2ccee8090e5877c8d

Note: If it does not work, try changing the charset of your config.js to UTF-8 or replacing the Unicode characters with the corresponding escape sequence "\uXXXX"

Note2: If you are trying it on main server, there is a filter for nicknames so you can't use some unicode ranges (for example letters with accents). This is intended to avoid impersonation and it does not depend on this repository.

danimesq commented 8 years ago

The config.js is already on UTF-8. I'm using "Espelho Bobágico" nickname, and isn't working.

Ecuacion commented 8 years ago

With the 6c5c0ec09829be5ccb63d2d2ccee8090e5877c8d changes it works for me.

Did you update your bot dependecies? The bug was in the node module node-ps-client. Try npm install --production

danimesq commented 8 years ago

This was the trick: update dependencies with 'npm install --production'. Thanks! You can close this issue now.