Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UTF-8
Author Message
Catalan_mistral
Journeyman
*

Posts: 54
Likes Given: 2
Likes Received: 6 in 5 posts
Joined: Jan 2017
Reputation: 0



Post: #1
UTF-8
OK so I save my .scp in utf-8 and can get hearts spades and clubs ♥♣♠ to show up on my dialog, i'm using it with dhtmlgump but can't seem to get diamond ♦ to show up

Code:
dhtmlgump +15 +10 50 50 0 0 <DEF.BF_Red> ♦ <Unicode diamond image is here>

so that's roughly the line of code I am using within my script, I've tried a few other odd characters and they are a bit hit and miss as to whether they work, so any ideas to the problem or how I can jerry rig something to make it work?

The One and Only......
(This post was last modified: 03-22-2017 09:47 AM by Catalan_mistral.)
03-22-2017 07:27 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #2
RE: UTF-8
UO clients have its own font file fonts.mul, and taking a look using UOFiddler on fonts.mul, most characters are just empty spaces and it just have some few UTF-8 (unicode) characters. So maybe the only way to make the client compatible with all UTF-8 characters is find some way to edit fonts.mul to add all these missing codes
03-22-2017 09:59 AM
Find all posts by this user Like Post Quote this message in a reply
Catalan_mistral
Journeyman
*

Posts: 54
Likes Given: 2
Likes Received: 6 in 5 posts
Joined: Jan 2017
Reputation: 0



Post: #3
RE: UTF-8
Hey Coruja thanks for the reply, had a proper look at the fonts mul, and I can see what you mean, strange they did those 3 card suits and not the diamonds though, long arse project to fully update the fonts.mul to have all the Unicode in it unless there is some sort of batch converter updater or something Sad

The One and Only......
03-23-2017 05:01 AM
Find all posts by this user Like Post Quote this message in a reply
Catalan_mistral
Journeyman
*

Posts: 54
Likes Given: 2
Likes Received: 6 in 5 posts
Joined: Jan 2017
Reputation: 0



Post: #4
RE: UTF-8
Found a diamond, so now got all 4 suits working and the playing cards look like proper playing cards now lol Smile

The One and Only......
03-23-2017 07:37 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)