Solved Utf8 support in RCON

Discussion in 'Rust Development' started by Vfloyd, Jul 27, 2015.

  1. Hello,

    I'm the developer of RustAdmin and some russian people contact me to ask why RustAdmin doesn't support UTF8. They say that OXIDE now supports UTF8 encoding. But where is it supported ? From what I see, the data sent through the RCON are not UTF8 encoded. Am I right ? Into the server console (windows console) the characters are properly displayed. But if a player speak into the game chat I'm not able to display them correctly in RustAdmin even if I try to read in UTF8. Can you help me ?
     
  2. Wulf

    Wulf Community Admin

    Oxide's custom console supports it, it doesn't control the RCON output.
     
  3. Thanks for your answer. Is it planned that OXIDE supports UTF8 through RCON ? I dunno exactly what OXIDE can access or not as server features.
     
  4. Wulf

    Wulf Community Admin

    I'll ask the others and see if we can figure something out.
     
  5. Thanks
     
  6. Wulf

    Wulf Community Admin

    So what I've been told, is that the Rust RCON implementation reads sbyte and casts to char, so it only supports ascii 127. I think the only way it'd be possible is if we create our own RCON implementation, else use one that does support it.
     
  7. It will be a fastidious work to reimplement the RCON interface. I'll ask Garry if he has planned to support UTF8 on RCON channel. I think it has been asked thousands of times but anyway, will see. I'll let you know what he says
     
  8. Yes It is :) I asked Garry if he could add it. And he did it this morning. I just have to test it out. I need someone to setup a rust beta server (steamcmd.exe +login anonymous +app_update 258550 -beta development) so that I connect to it and try to read russian language.
    [DOUBLEPOST=1438094060][/DOUBLEPOST]@AlexALX_[rus-ua]. Utf8 support is now working.
     

    Attached Files:

    • utf8.png
      utf8.png
      File size:
      34.6 KB
      Views:
      136
  9. How you asked garry? via facepunch support? Sadly that developers don't care about problems like this - http://oxidemod.org/threads/restore-connection-to-steam-on-server-without-restart-server.10061/
    :(

    As for utf8 in rcon, finally good news!)
     
  10. Not via facepunch. I have another way to talk with him. Concering the problem above, you have to understand that the developpers have a lot of things to do. If you follow the twitter feed you can see that they do many things every days. The problem above is maybe just not a priority in their roadmap.
     
  11. Wulf

    Wulf Community Admin

  12. Hmm, i'm still getting in rusty or rustadmin this via console:
    (17:02:24) | [CHAT] [123] AlexALX: K22K2K

    Whats wrong? oO
     
  13. You will need the last version of rustadmin to take advantage of the server update. By default, the server is still working in non UTF8 mode. The next version of RustAdmin will be able to turn the server into UTF8 mode. I will release the next version soon.
     
  14. Seems like problem is there again. Using RustAdmin in UTF-8 mode I can receive chat messages from server correctly, but can't send anything in russian. I use Win 2008R2 SP1, and can't find any solution for this. Tryed to use "chcp 65001" (and other CMD tweaks) in starting batch-file but it doesn't affect RCON. @Vfloyd maybe you know something about? :'(
     

    Attached Files:

  15. The issue is on server side. The server doesn't interpret received messages as UTF8. A workaround is to switch the rcon type of your server to "web". rcon.web = True, restart the server, then change the rcon type on rustadmin settings to "Experimental (web)"
     
  16. Thank you, it works. You are life savior :) And RustAdmin tool is fine too.
    Don't know how to set server description on russian still, it doesn't show up correctly even if I use server.description command through RCON
     
  17. Can You describe it more detailed. I dont fully understand what I need to switch and where I need make some changes