I have some raw data (xml) which I definitely receive containing unicode. I write them to a file using:
File.WriteAllText This seems to remove/change unicode characters. Is there a way to prevent this?
Try the File.WriteAllText overload which allows you to specify an encoding - just give it the same encoding of the original data.
WriteAllText()is using UTF8 encoding - sure you don't have a problem elsewhere? Please post some code