View Single Post
03/13/15, 02:16 PM   #9
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Originally Posted by Weolo View Post
I will keep the unicode replacement in mind for future things but for this problem I will keep it simple and go with the substring to rip off the last 3 characters
Lua Code:
  1. GetString(SI_SMITHING_RESEARCH_IN_PROGRESS):sub(1,-4) .. ": "
That's going to bite you sooner or later. Cutting UTF-8 strings at arbitrary byte positions is never a good idea
  Reply With Quote