Originally Posted by skobyjay
Hello,
i'm seeing extra chars like "^p" and "^n" or "^Mx" when I output Item links or play names via the "d()" method. i'm also see this if I stored a custom variable. is there a way to prevent this or what are these extra charactersa
|
Use function zo_strformat(pattern, ...). For names is usually used pattern SI_UNIT_NAME or "<<C:1>>".
Lua Code:
d(zo_strformat(SI_UNIT_NAME, name))
A bit more about zo_strformat, its patterns and control characters like "^p" or "^n":
http://www.esoui.com/forums/showthread.php?t=1443