I am working on a C# based application and came up with this problem of converting a string to UCS2 encoding. Basically, I have to take some text from XML and convert it to UCS2 and write this UCS2 code to a *.dat file.
Is there a way to do this (convert a string to UCS2 encoding) in C#.NET? if not, what are the options then?
Thanks,