Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Encoding

Encoding

Scheduled Pinned Locked Moved C#
databasehelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bahadir Cambel
    wrote on last edited by
    #1

    I am using HttpWebRequest and Response classes in order to query a third party database. But the problem is , encoding is in ISO_8859 format and couldnt retrieve some characters ..as I looked so far in the method of streamReader class , only ASCII , utf 7-8 and a few more are available..But I want to encode streamReader with ISO-8859 So far I am using the following method. sr = new StreamReader(resp.GetResponseStream(), System.Text.Encoding.UTF8); .. How could I achieve this? Any suggestions or piece of code will be welcomed:) Thanks in advance.

    M 1 Reply Last reply
    0
    • B Bahadir Cambel

      I am using HttpWebRequest and Response classes in order to query a third party database. But the problem is , encoding is in ISO_8859 format and couldnt retrieve some characters ..as I looked so far in the method of streamReader class , only ASCII , utf 7-8 and a few more are available..But I want to encode streamReader with ISO-8859 So far I am using the following method. sr = new StreamReader(resp.GetResponseStream(), System.Text.Encoding.UTF8); .. How could I achieve this? Any suggestions or piece of code will be welcomed:) Thanks in advance.

      M Offline
      M Offline
      mav northwind
      wrote on last edited by
      #2

      There's a static System.Text.Encoding.GetEncoding() method you can use to get a certain encoding with a given name. Regards, mav

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups