I try to process variable with Unicode and decode it to normal text using C# module. When i'm using text like that it works perfectly
But when i try put this text to variable and use variable it stop working
Any one have idea why it stop working?
C#:
string text = "Some string that I am using but Poacher\u2019s shows unicode!";
byte[] textBytes = Encoding.Unicode.GetBytes(text);
Encoding.UTF8.GetString(Encoding.Convert(Encoding.Unicode, Encoding.UTF8, textBytes));
return text;
C#:
string text = project.Variables["FeturesRewrite"].Value;
byte[] textBytes = Encoding.Unicode.GetBytes(text);
Encoding.UTF8.GetString(Encoding.Convert(Encoding.Unicode, Encoding.UTF8, textBytes));
return text;