Form Charset character problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Prosper0
    New Member
    • Feb 2006
    • 2

    Form Charset character problem

    Hello,
    I have a problem sending special characters from a form to another page.

    The sending page is in ISO-8859-1 (meta tag), and the recieving page too. (Using post)

    The characters show OK in the sending page (in textboxes), characters are eg:
    å (a with a ring, Å )
    ä (a with two dots, ä )
    ö (o with two dots, ö )
    etc.

    I'm getting the var by "Request.Form.G et("varname"), .Net". This works if I use UTF-8 at the sending page, but not when I use ISO-8859-1. How can I make it work with ISO? I shouldn't have to encode/decode, should I...?

    Thanks for any answers! I'm lost. =)

    /P
  • Prosper0
    New Member
    • Feb 2006
    • 2

    #2
    .Net

    Well, I have found one solution to the problem...but I don't like it very much. :p

    I changed the globalization in Web.config to:
    <globalizatio n fileEncoding="i so-8859-1" requestEncoding ="iso-8859-1" responseEncodin g="iso-8859-1" culture="sv-SE" uiCulture="sv-SE"></globalization>

    Then it worked. It was UTF-8. But there should be a better solution to this, shouldn't it??

    Comment

    Working...