Using foreign characters in a tooltip
I'm trying to make a custom version of my examine window with a button that searches a Russian site. The tooltip for the button would be
LocalTooltip="Поиск на eq2.playhard.ru" When I tried that on my US server the characters just looked like boxes but I thought that might just be because the font didn't include those characters. Does the tooltip need to be LocalTooltip="\rc:Поиск на\:Seach\/r eq2.playhard.ru" or do you use some other method like forcing a different font with some custom tooltip style? |
That is because the default /Fonts.Font_Tooltip does not support unicode characters. However, for all I know, on Russian servers the system will automatically select /Fonts.Font_Russia_Tooltip, which works.
Pay attention when developing for the Russian server btw, they are generally lagging 1 live update behind. |
Ok, I ended up getting it to work I think. I just made a custom tooltip style and pointed that at the Russian tooltip font, which was Times Roman something.
|
Grr, looks like the problem is actually with the search string somewhere. Has anyone tried passing a unicode string with the /browser URI command?
Here's the code that I'm using: <Button LocalTooltip="Поиск на eq2.playhard.ru" Location="22,18" Name="SearchPlayhard" OnPress="OthURIString='http://eq2.playhard.ru/item.php?name=' ## Parent.Parent.LorePage.Name.Text browser OthURIString" ScrollExtent="18,14" Size="18,14" Style="/ButtonStyles.find.style" TooltipStyle="tooltip_Russian"></Button> <TooltipStyle GridStyle="/gridlist.grid_tooltip" Maxwidth="400" Name="tooltip_Russian" TextPadding="4,2,2,2" TextStyle="/Fonts.Font_Russia_Tooltip"/> And here's a screen shot of what he's getting: http://www.eq2interface.com/forums/s...0&postcount=44 |
Hmm, the unicode is definitely getting mixed up somehow. If I enter in the command:
/browser http://eq2.playhard.ru/item.php?name=П (just one Cyrillic character, Unicode 041F) The browser gives me: http://eq2.playhard.ru/item.php?name=%EF%BF%90%EF%BE%9F Does anyone recognize that type of encoding? %EF looks like the start of a UTF-8 character so I'm guessing that's two 3 byte characters. If I go to the web site first and paste the character "П" into the search field, the encoding it shows is: http://eq2.playhard.ru/item.php?name=%CF Hmm, after some Cyrillic research on Wikipedia it looks like the site uses Windows-1251 encoding. But that's probably as far as I'm going to get for now. |
I don't think you can, conversion isn't handled correctly. Doesn't work on the Japanese server, either.
|
All times are GMT -5. The time now is 06:19 PM. |
vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI