EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > XML Modification Help & Info

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 05-04-2007, 07:35 PM
Othesus's Avatar
Othesus Othesus is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 847
Default 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?
Reply With Quote
  #2  
Unread 05-05-2007, 06:21 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

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.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #3  
Unread 05-05-2007, 06:27 AM
Othesus's Avatar
Othesus Othesus is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 847
Default

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.
Reply With Quote
  #4  
Unread 05-05-2007, 02:09 PM
Othesus's Avatar
Othesus Othesus is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 847
Default

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
Reply With Quote
  #5  
Unread 05-05-2007, 06:49 PM
Othesus's Avatar
Othesus Othesus is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 847
Default

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.
Reply With Quote
  #6  
Unread 05-05-2007, 06:49 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

I don't think you can, conversion isn't handled correctly. Doesn't work on the Japanese server, either.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:12 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI