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
 
The object/assembly is not mine to change that is why I can't change it.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top