C# how to get current encoding type used by C# to write/read configuration for config file?

Posted by 5YrsLaterDBA on Stack Overflow See other posts from Stack Overflow or by 5YrsLaterDBA
Published on 2010-05-24T13:48:05Z Indexed on 2010/05/24 13:51 UTC
Read the original article Hit count: 1745

Filed under:
|
|

I am doing connection string encryption. we use our own encryption key with AES algorithm to do this. during the process, we need to convert string to byte array and then convert byte array back to string. I found the encoding play an important role on those conversions.

So I need to know the encoding C# is using to get above conversion right. Any idea how to get current encoding programmably?

thanks,

© Stack Overflow or respective owner

Related posts about c#

Related posts about security