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.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ MXP and Pueblo
➜ Unicode through entities?
Unicode through entities?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Radiosilence
(2 posts) Bio
|
Date
| Mon 28 Jul 2008 11:47 PM (UTC) |
Message
| I am wondering if it's possible to output unicode entities from the server, such as ░▒▓♪♫, and have MUSHClient convert them properly to their unicode characters? | Top |
|
Posted by
| Radiosilence
(2 posts) Bio
|
Date
| Reply #1 on Tue 29 Jul 2008 03:07 AM (UTC) |
Message
| To clarify, I am talking about inside of an MXP/Pueblo tag. I was able to out some of the more standard entities, but I am wondering if I am output Unicode in this manner.. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #2 on Tue 29 Jul 2008 07:38 AM (UTC) |
Message
| It doesn't handle it natively as there is a check that the number does not exceed 255.
However if you install this plugin, it converts the entities to UTF8 sequences, and provided you have Unicode checked in your output window configuration, it should work. The ones you gave seemed to work for me.
Save between the lines as Convert_UTF8_Entities.xml and use File -> Plugins to load that as a plugin.
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<muclient>
<plugin
name="Convert_UTF8_Entities"
author="Nick Gammon"
id="553e3b6c1df8c269dca744c8"
language="Lua"
purpose="Converts MXP entities to UTF8"
date_written="2008-07-29"
requires="4.06"
version="1.0"
>
</plugin>
<!-- Script -->
<script>
<![CDATA[
function OnPluginPacketReceived (s)
return (string.gsub (s, "%&#(%d+);", utils.utf8encode ))
end -- function OnPluginPacketReceived
]]>
</script>
</muclient>
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | 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.
11,253 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top