- Joined
- Nov 23, 2020
- Posts
- 88
Hello trainers, it's me again! I use EBDX in Essentials v21 and I share problems and solutions that I suffered here. (I don't know if this error repeats itself without EBDX). After several tests I realized that there were problems with UTF-8 encoding when there were special characters in the Trainer and Pokémon names, so here is the solution:
In module CableClub in the method def self.parse_pkmn(record) in the line
Replace with:
I also decided to do the same when sending information from pkmn.owner.name with:
I suffered the same error regarding the enemy trainer's name, so to fix this, in the class CableClubScreen in the method
def await_partner(connection):
After that, everything here seemed to work normally again, if you If you have any thoughts on this, they are welcome!
In module CableClub in the method def self.parse_pkmn(record) in the line
Code:
pkmn.name = record.str
Ruby:
pkmn.name = (record.str).force_encoding(Encoding::UTF_8)
I also decided to do the same when sending information from pkmn.owner.name with:
Code:
pkmn.owner.name = (record.str).force_encoding(Encoding::UTF_8)
I suffered the same error regarding the enemy trainer's name, so to fix this, in the class CableClubScreen in the method
def await_partner(connection):
Code:
@partner_name = (record.str).force_encoding(Encoding::UTF_8)
After that, everything here seemed to work normally again, if you If you have any thoughts on this, they are welcome!