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.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ International ➜ TinyMUX 2.7 with UTF-8 and MUSHClient

TinyMUX 2.7 with UTF-8 and MUSHClient

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


Pages: 1  2  3 

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #30 on Mon 12 Mar 2007 02:32 AM (UTC)
Message
Quote:

... with either ISO-8859-1 or US-ASCII as appropriate ...


Which is appropriate?

Anyway, I have got it currently agreeing to US-ASCII is UTF-8 is not checked, and UTF-8 if it is.




I think you can detect from the login name, whatever that is, for this reason: Regardless of whether they are using a Unicode name or not I am presuming that you will not permit two players to have the same sequence of bytes as a name. In other words, two names which are identical byte patterns (but one is using UTF-8 and one is using LATIN1) would not be permitted. It would just be too confusing otherwise.

Thus, once a player has entered a name, that sequence of bytes, regardless of whether the high order bit(s) are set, can be used to look them up in the player database. Then their preference for UTF-8 can be established. I am presuming that they won't change clients every couple of hours, or fonts even, so once their preference is set, it can probably stay set.

- 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.


109,341 views.

This is page 3, subject is 3 pages long:  [Previous page]  1  2  3 

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.