Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionfunction convISO2U($str) { $i="ISO-8859-1"; $o="UTF-8"; return(iconv($i,$o,$str)); }
Public Function decodeFromWeb(ByVal s As String) As String ' Create two different encodings. Dim win As Encoding = Encoding.GetEncoding(1252) Dim web As Encoding = Encoding.GetEncoding(65001) ' Convert the string into a byte[]. Dim fBytes As Byte() = web.GetBytes(s) ' Perform the conversion from one encoding to the other. Dim tBytes As Byte() = Encoding.Convert(web, win, fBytes) Dim tChars(win.GetCharCount(tBytes, 0, tBytes.Length) - 1) As Char win.GetChars(tBytes, 0, tBytes.Length, tChars, 0) Dim tString As New String(tChars) Return (tString) End Function