Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ International ➜ Translate sent text GBK(or other charsets) into UTF-8

Translate sent text GBK(or other charsets) into UTF-8

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Lost   China  (1 post)  Bio
Date Thu 05 Jul 2018 12:22 PM (UTC)
Message
I wrote a plugin to convert sent text charset(GBK to UTF-8), you can manually change "GBK" to other charset.


<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>

<muclient>
<plugin
   name="Translate_GBK_TO_UTF8"
   author="lostsnow"
   id="b5d6c2e22177e7a13b081a29"
   language="Lua"
   purpose="Translate sent text GBK into UTF-8"
   date_written="2018-07-02 13:19:26"
   requires="4.25"
   version="1.0"
   >
</plugin>

<!--  Script  -->
<script>
<![CDATA[
function OnPluginSend (sText)
    assert (package.loadlib ("luaiconv.dll", "luaopen_iconv")) ()
    local cd = iconv.open("UTF-8", "GBK")
    local nstr, err = cd:iconv(sText)
    Send ((nstr))
    return false
end -- OnPluginSend
]]>
</script>

</muclient>


The plugin require libiconv2.dll and luaiconv.dll, you can download from:

https://www.dropbox.com/s/a90e4shr41q3wi5/luaiconv.zip?dl=0
Top

Posted by Fiendish   USA  (2,533 posts)  Bio   Global Moderator
Date Reply #1 on Fri 06 Jul 2018 09:06 PM (UTC)
Message
Thanks!

https://github.com/fiendish/aardwolfclientpackage
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


9,978 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.