title: Encoding UTF8 string to ISO-8859-1 String (VB.NET)
body: <p>I need to convert UTF8 string to ISO-8859-1 string using VB.NET.</p>
  
  <p>Any example?</p>
  
  <hr>
  
  <p><em>emphasized text</em>I have tried Latin function and not runs. I receive incorrect string.</p>
  
  <p>My case is that I need to send SMS using API.</p>
  
  <p>Now I have this code:</p>
  
  <pre><code>        baseurl = "http://www.myweb.com/api/sendsms.php"
          client = New WebClient
          client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)")
          client.Encoding = System.Text.Encoding.GetEncoding("ISO-8859-1")
          client.QueryString.Add("user", user)
          client.QueryString.Add("password", pass)
          client.QueryString.Add("alias", myAlias)
          client.QueryString.Add("dest",  mobile)
          textoSms = Me.mmTexto.Text
          textoSms = System.Web.HttpUtility.UrlEncode(textoSms)
          client.QueryString.Add("message", textoSms)
          data = client.OpenRead(baseurl)
          reader = New StreamReader(data)
          s = reader.ReadToEnd()
          data.Close()
          reader.Close()
  </code></pre>
  
  <p>But not runs...I receive incorrect messages. For example</p>
  
  <p>if I write: <em>mañana</em> returns <em>maa ana</em> </p>
  
  <p>If I write <em>aigüa</em> returns <em>aiga</em> </p>