entity.MetaFuncs.MEStringsSelector.ReplaceCodes C# (CSharp) Метод

ReplaceCodes() публичный статический Метод

Replaces special unicode entries to a ASCII readable version
public static ReplaceCodes ( string text, bool allCodes ) : string
text string The unicode text to replace
allCodes bool If true does all codes. If false does just the internal codes (such as "GamerTag")
Результат string
        public static string ReplaceCodes(string text, bool allCodes)
        {
            byte[] tempbytes = System.Text.Encoding.UTF8.GetBytes(text);
            tempbytes = replaceCodes(tempbytes, allCodes);
            text = System.Text.Encoding.UTF8.GetString(tempbytes);

            return text;
        }