D
Dan
When I use the following code I get "???" in place of the non-Ascii
character. Is there any way to fix the conversion or do I have to write a
function to search for "???" and replace with another character?
Any help or suggestions would be greatly appreciated.
Thanks
Dan
Dim plainText As String
plainText = "tâ””he"
Dim plainTextBytes As Byte()
plainTextBytes = Encoding.UTF8.GetBytes(plainText)
Dim str As String
Dim enc As New System.Text.ASCIIEncoding()
str = enc.GetString(plainTextBytes).ToString
character. Is there any way to fix the conversion or do I have to write a
function to search for "???" and replace with another character?
Any help or suggestions would be greatly appreciated.
Thanks
Dan
Dim plainText As String
plainText = "tâ””he"
Dim plainTextBytes As Byte()
plainTextBytes = Encoding.UTF8.GetBytes(plainText)
Dim str As String
Dim enc As New System.Text.ASCIIEncoding()
str = enc.GetString(plainTextBytes).ToString