I'm currently serializing an object using XMLSerializer, and the resulting XML starts with:
<?xml version="1.0" encoding="utf-16"?>
Which I would like to get rid of, because in this particular case I don't need it (I'll only use the serialized string to deserialize later with my own code, so I can re-add it later when needed).
I'm also trying to do this as fast as possible, since we'll be doing TONS of these serializations.
So the question is, can I count on this signature to always be exactly the same? (As in, can I just remove the first 39 characters of the resulting string, and then add back that exact same string when deserializing?)
Or can something make the encoding be different, for example?
Thanks