ribasco / async-gamequery-lib

A high-performance java game query library designed for steam/source based games and others
https://ribasco.github.io/async-gamequery-lib/
Apache License 2.0
125 stars 27 forks source link

Cyrylic support #228

Open romanvoloboev opened 5 months ago

romanvoloboev commented 5 months ago

Is it possible to add cyrilic support for rcon commands? I'm trying to send for SQUAD sserver command like "AdminBroadcast тест", but server prints this like "????". I have also tried to encode this string to different encodings, like UTF-8, ASCII, Unicode, cp1251, cp866.. but nothing worked. Also, I decide to test another rcon library written with Golang (https://github.com/gorcon/rcon) and comand "AdminBroadcast тест" executed via it worked like a charm! So maybe you could look on it and implement some changes to make you lib cyrylic friendly?

romanvoloboev commented 5 months ago

fixed by changing here US_ASCII -> UTF_8 com.ibasco.agql.protocols.valve.source.query.rcon.packets.SourceRconPacketFactory#createCommand

but for some reason server didn't receive message after AdminBroadcast if it's lenght > 127 symbols