set default encoding

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

Is there a way to set what Default.Encoding returns in an appliaiton?

I have an object that uses this and I have no way to change it. The only
way for it to work is if I could change what Encoding.Default returns.

i.e.
'Change to correct code page.
Encoding.Default = Encoding.GetEncoding(51936)
...Do work with object.
'Change back to original
Encoding.Default = Encoding.GetEncoding(1252)

Thanks for any help.

Bob
 
Is there a way to set what Default.Encoding returns in an appliaiton?
No.


I have an object that uses this and I have no way to change it.

So why don't you change your code so you don't rely on
Encoding.Default then? If the "correct" code page is 51936 then use
that explicitly.



Mattias
 
Back
Top