Hi disel2010,
The thing was I couldn't convert "\\u" character to an actual "\u" char.
For instance, entering "\u03c1" in a TextBox and hardcoding it like string str="\u03c1" is not the same (the second one works as it should be).
But never mind, I found a way:
Code:
StringBuilder sb = new StringBuilder();
//string[] array = value.Replace("\\u", "").Split(' ');
for (int i=0; i<value.Length - 4; i++)
{
if (value.Substring(i, 2) == "\\u")
{
sb.Append((char)Int16.Parse(value.Substring(i + 2, 4), System.Globalization.NumberStyles.AllowHexSpecifier));
i += 5;
}
else
sb.Append(value[i]);
}
return sb.ToString().Trim();
Thanks for replying though.
All the best