Thread Tools Display Modes
10-14-05, 01:58 AM   #1
Elkano
A Flamescale Wyrmkin
 
Elkano's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2005
Posts: 131
Support for UTF-8

As you may know WoW is using UTF-8 encoded strings. On English systems you'll hardly have to encode chars that way but for eg German or Frensh systems it's a must.
Would it be possible to have the program encode/decode strings with UTF-8 in order to have them shown correctly?
  Reply With Quote
10-14-05, 03:44 AM   #2
Nulkris
A Cobalt Mageweaver
 
Nulkris's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2005
Posts: 214
Post

Post a file that you want to be handled correctly please. Thanks.
__________________
Nulkris - A80 Rogue - Proudmoore
(Also Drukris, Hamkris on Proudmoore; Hulkris on Jubei'Thos & Khaz Modan)
  Reply With Quote
10-18-05, 01:58 AM   #3
Elkano
A Flamescale Wyrmkin
 
Elkano's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2005
Posts: 131
If attached a screenshot of the game menu viewed in the editor (1.0.100.6).
ü is the UTF-8 encoding for ü

WoW itself does UTF-8 decoding for the string. So it would be nice if your programm would render UTF-8, too.
Attached Thumbnails
Click image for larger version

Name:	UIDesigner UTF-8.jpg
Views:	796
Size:	21.2 KB
ID:	231  
  Reply With Quote
10-18-05, 02:21 AM   #4
Nulkris
A Cobalt Mageweaver
 
Nulkris's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2005
Posts: 214
Send me the actual XML file so I have something to play with, I don't have access to the Euro client.

Thanks
__________________
Nulkris - A80 Rogue - Proudmoore
(Also Drukris, Hamkris on Proudmoore; Hulkris on Jubei'Thos & Khaz Modan)
  Reply With Quote
10-18-05, 02:37 AM   #5
Elkano
A Flamescale Wyrmkin
 
Elkano's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2005
Posts: 131
the zip includes the following files:
- GameMenuFrame.xml
- GlobalStrings.lua
- UIParent.lua

I think GameMenuFrame.xml and UIParent.lua should be the same files as those you have since the strings are located in GlobalStrings.lua. So replacing this file shoud give you the effect.
Attached Files
File Type: zip utf-8.zip (99.9 KB, 772 views)
  Reply With Quote
10-18-05, 06:33 PM   #6
Nulkris
A Cobalt Mageweaver
 
Nulkris's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2005
Posts: 214
Thanks for that. Turns out that it was Lua that can't handle UTF-8, I now do the conversion for it so you should get the correct result now. Try version .7 that I will be uploading shortly.
__________________
Nulkris - A80 Rogue - Proudmoore
(Also Drukris, Hamkris on Proudmoore; Hulkris on Jubei'Thos & Khaz Modan)
  Reply With Quote
10-19-05, 01:18 AM   #7
Elkano
A Flamescale Wyrmkin
 
Elkano's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2005
Posts: 131
OK, seems to be working as it should.
Thanks a lot
  Reply With Quote
11-08-05, 07:53 PM   #8
kharaone
A Defias Bandit
Join Date: Oct 2005
Posts: 3
*Bump*

it works great but.....coz there is a but.. some localization use the format /xxx/yyy to encode a character in UTF-8

for example é = /195/169

but once we save those files with wow ui des., and load the files in game we have the "/195/169" and not the expected "é".

I just realize a few release ago.. and just found the time to tell it...

so if it was already solved.. sorry for the inconveniences...
  Reply With Quote
11-08-05, 08:17 PM   #9
JASlaughter
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Oct 2005
Posts: 9
You can use

http://wow.jaslaughter.com/uni2lua.asp

To convert unicode to LUA escape codes.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Support for UTF-8


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