G
Guoqi Zheng
Dear sir,
I need to decode base64 encoded email.
I used below function but it does not work correctly, especially when I need
to decode some Characters like Chinese,
Can some one point out what I did wrong here? Thanks.
Public Function DecodeBase64(ByVal strInput As String) As String
Dim ReturnByte As Byte()
ReturnByte = System.Convert.FromBase64String(strInput)
Dim ReturnString As String
ReturnString = System.Text.Encoding.UTF8.GetString(ReturnByte)
Return ReturnString
End Function
--
Kind regards
Guoqi Zheng
guoqi AT meetholland dot com
Http://www.meetholland.com
I need to decode base64 encoded email.
I used below function but it does not work correctly, especially when I need
to decode some Characters like Chinese,
Can some one point out what I did wrong here? Thanks.
Public Function DecodeBase64(ByVal strInput As String) As String
Dim ReturnByte As Byte()
ReturnByte = System.Convert.FromBase64String(strInput)
Dim ReturnString As String
ReturnString = System.Text.Encoding.UTF8.GetString(ReturnByte)
Return ReturnString
End Function
--
Kind regards
Guoqi Zheng
guoqi AT meetholland dot com
Http://www.meetholland.com