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 6635393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:02:54+00:00 2026-05-25T23:02:54+00:00

Is there a default character set used by HTML forms? Or is there a

  • 0

Is there a default character set used by HTML forms? Or is there a default accept-charset attribute that is used?

We’re experiencing some problems with characters and character sets in our online forms.

The HTML pages are set to use the character set ISO-8859-1 (using a content meta tag), but there is no specific accept-charset attribute set in the forms.

The databases in the back end use UTF-8 encoding.

I’m not sure why there are two different character sets used here – that decision was a bit before my time, and can’t be easily changed.

Most of the time, everything runs quite happily. The problem comes when someone enters a character that’s not contained in the ISO-8859 character set – it displays correctly in the browser, but comes through to the back end as an unknown entity. Really bizarrely, it then transfers back to the browser correctly.

I’ve assumed so far that even if a user enters a character into the form that’s not in the ISO-8859 charset, the page will use the character set from the meta tag when sending the data to the server; causing the odd entity to be displayed in the database. Does this sound like a feasible explanation, and – if so – would changing the content type of the HTML pages be a reasonable solution to the problem?

Cheers.

  • 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-25T23:02:55+00:00Added an answer on May 25, 2026 at 11:02 pm

    Browsers will send the text from inputs in the same charset as the page is served. accept-charset can cause problems, if you use it, make sure it has the same charset as your page.

    The reason it’s an unknown entity is because your database is treating it as UTF-8. But when it comes back to the page, it’s just bytes, this time treated as ISO-8859.

    However, it may cause problems if you are using any of your database’s string functions on the text if it is treating it as UTF-8.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a database that was set up with the default character set SQL_ASCII.
Is there any difference between statements ALTER TABLE xxx DEFAULT CHARACTER SET utf8 and
My teacher told us that there is a default class in Java for binary
In the android we can see that there is a default google search on
I'm looking for functional way to set default character encoding for HTTP responses for
I want to use the placeholder attribute for HTML input[type=text] elements such that the
I've already set my page default charset and MySQL table charset utf8. It works
By default there is a single line separator in uitableview. But I want to
By default there are two appenders in JBoss5.1 - CONSOLE and FILE . Do
Is there any default functionality for arranging JInternalFrames in Java Swing? I would like

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.