Hello
I need to convert a UTF-8 string into ANSI so that I can create a user-friendly filename in Windows.
This doesn't work:
Input page:
Code:
Output:
Encoding() doesn't offer ANSI as an option. Should I use another .Net function to convert accented characters to get a legible Windows filename?
Thanks for any help.
I need to convert a UTF-8 string into ANSI so that I can create a user-friendly filename in Windows.
This doesn't work:
Input page:
Code:
<title>Cinéma Paradiso</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />Code:
'BAD EMPTY Dim Response As String = Encoding.ASCII.GetString(Encoding.Unicode.GetBytes(e.Result))
Dim Response As String = Encoding.ASCII.GetString(Encoding.UTF8.GetBytes(e.Result))Code:
<title>Cin????ma Paradiso</title>Thanks for any help.