Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6844641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:24:11+00:00 2026-05-27T00:24:11+00:00

I have created a <form> that points to http://localhost:17099/Form/Subscribe and hosted in my website…

  • 0

I have created a <form> that points to http://localhost:17099/Form/Subscribe and hosted in my website…

Every time I try to post North European characters, I get them like this:

enter image description here

That is me posting Bruno Alexandre å ø æ as the Name.

What do I need to do to get the correct encoded chars?

  • I have tried using the GetBytes() to figure it out if I could convert from one encoding to the other
  • I have tried using this trick
  • I have tried append accept-charset="ISO-8859-1" to the form

but nothing things to work…

If I check the Accept-Charset from the Current Request, I get:

ISO-8859-1,utf-8;q=0.7,*;q=0.3

If I play around with System.Text.Encoding I get this:

var name = System.Text.Encoding.GetEncoding("iso-8859-1").GetBytes(model.Name);
string n = System.Text.Encoding.UTF8.GetString( name );

n will print as "Bruno Alexandre ? ? ?"

Drilling down and convert the string into bytes, if I send å æ ø, this is what I get:

var b = System.Text.Encoding.GetEncoding("iso-8859-1").GetBytes(model.Name);

b[0] = 63
b[1] = 32
b[2] = 63
b[3] = 32
b[4] = 63

witch results in "? ? ?"

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:24:12+00:00Added an answer on May 27, 2026 at 12:24 am

    Maybe the form is not being posted with the correct content type; it should be:

    application/x-www-form-urlencoded; charset=UTF-8
    

    You can simple append this to your <form>

    accept-charset="UTF-8" 
    enctype="application/x-www-form-urlencoded; charset=UTF-8;"
    

    so it will end up like:

    <form method="post" 
          action="http://domain.com/subscribe" 
          accept-charset="UTF-8" 
          enctype="application/x-www-form-urlencoded; charset=UTF-8;">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a form that is used for both adding and editing a
I have created a macro for excel which will pop up form that contains
if i have created a view model and have a partial form that is
I have created a non-form c# program that uses the NotifyIcon class. The text
I have an MDI parent form that creates many MDI children at run time.
For my C# Windows Form Application, I have created a flowlayoutpanel that contains several
I have a button element that I've created like so: $submit = new Zend_Form_Element_Button('submit');
I have a create action for a form that potentially generates errors (i.e. first
I have a win form that creates a site in IIS7. One function needs
I have a small form inside a table. POSTing that form creates a new

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.