when I do serialization my code looks like below. but problem is StringWriter makes it always UTF-16 and I need UTF-8. Simply I can replace it in string but I dont like to do this. I know that StreamWriter has encoding overload. on the other hand this code
is used by multithreading and streamwriter isnt thread safe. what would be best option to encode my string. is xmltextWriter other option maybe? is there any small performance issue between all these 3?
thanks for your help
Dim xmlSerializer As New XmlSerializer(GetType(itemTemplate))
Dim stringWriter As New StringWriter
Serialize = stringWriter.ToString()
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
View Complete Post