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. Windows Forms
  4. Webbrowser and encoding

Webbrowser and encoding

Scheduled Pinned Locked Moved Windows Forms
htmlhelptutorialquestion
1 Posts 1 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.
  • H Offline
    H Offline
    hoonzis
    wrote on last edited by
    #1

    Hello, I'm using the webbrowser in my litle email client. I'm editing the message in the browser, then accessing it over DocumentText and sending later. Does anyone know how to change webbrowser's encoding from code?I tried: webbrowser.Document.Encoding = "windows-1250"; and actually it puts the correct encoding into the html code, but it deletes all the special characters in the html.So I will get: which is correct but eg. for this Čeština je krásná I get just: etina je krsn This happens when I'm changing the encoding after the editing of the document is finished. I tried to first change it to windows-1250 and then edit the content, but actually every time I edit something in webbrowser it changes back to utf-8, which is default I suppose. Any help on this appriciated Thanks Honga

    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