From d6cbf71729493faae42adbe8af0abb04f9212281 Mon Sep 17 00:00:00 2001 From: ulukyn Date: Fri, 17 Aug 2018 01:46:19 +0200 Subject: [PATCH] Added: Usefull function to get ucstring from utf8 in one step --HG-- branch : compatibility-develop --- code/ryzom/client/data/gamedev/interfaces_v3/webig.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/ryzom/client/data/gamedev/interfaces_v3/webig.lua b/code/ryzom/client/data/gamedev/interfaces_v3/webig.lua index 10c489ca4..570923dae 100644 --- a/code/ryzom/client/data/gamedev/interfaces_v3/webig.lua +++ b/code/ryzom/client/data/gamedev/interfaces_v3/webig.lua @@ -8,6 +8,12 @@ if (webig.sheetLists==nil) then webig.sheetLists = {} end +function getUCtf8(text) + local uctext = ucstring() + uctext:fromUtf8(text) + return uctext +end + function webig:addSheet(dst, sheet, quality, quantity, worned, user_color, rm_class_type, rm_faber_stat_type) if quality == nil then quality=0 end