String variables in C_LFGList.GetSearchResultInfo
Some addon doesn't work in my russian client. I tried to find problem and fix it. And found next problem with API and some string variables. API function C_LFGList.GetSearchResultInfo returns "name" and "comment" as string. But only print() LUA-command works fine with this string. There is an example of my code:
HelloWorld.toc Code:
## Interface: 80300 Code:
local b = CreateFrame("Button", "MyButton", UIParent, "UIPanelButtonTemplate") Code:
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd"> Result in game: Code:
name: the shard of heaven farm wm of. String len: 8 Code:
name = "|Kr730|k" Possible problem with UTF8 charset, but UTF8 addon also doesn't work with these strings. Update: the same problem is with EN game client. |
That is Blizzard's method of "encrypting" or obfuscating strings. The tech started with realID and battletags where add-ons are unable to actually access anyone's real name even though you can see it. If you're familiar with text formatting, the system uses | then a letter then data input then another | and usually the same letter lowercase. This is most commonly seen with colors using |chexcodeTEXT|r and clickable inline links using |Hlinkdata|hVisibleText|h. Communities, group finder, and bnet friends all use |Kdata|k for obfuscation.
It is not possible for code to read or save what you see. |
All times are GMT -6. The time now is 01:35 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI