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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:16:51+00:00 2026-06-17T07:16:51+00:00

I have a textarea where I type some unicode characters which become question marks

  • 0

I have a textarea where I type some unicode characters which become question marks by the time the string reaches the server.
On the input I typed the following:

Don’t “quote” me on that.

On the server I checked Request.Form["fieldID"] in Page_Load() and I saw:

“Don�t �quote� me on that.”

I checked my web.config file and it says <globalization requestEncoding="utf-8" responseEncoding="utf-8" />. Anything else I should check to ensure UTF-8 is enabled?

  • 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-06-17T07:16:52+00:00Added an answer on June 17, 2026 at 7:16 am

    Once I again I solve my own problem. It is quite simple. The short answer is add the following before sending any response back to the client:

    Response.ContentType = "text/html; charset=utf-8";
    

    The long answer is that a “feature” called Cache Mode circumvented all other response data by writing a UTF-8 encoded file that is really just a cached response. Adding that line before it write the file solved my problem.

    if (cacheModeEnabled) {
        Response.ContentType = "text/html; charset=utf-8"; // WriteFile doesn't know the file encoding
        Response.WriteFile(Server.MapPath("CacheForm.aspx"), true);
        Response.End();
    } else {
      // perform normal response here
    }
    

    Thanks for all the answers and comments. They definitely helped me solve this issue. Most notably, Fiddler2 let me see what the heck is really in the request and response.

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

Sidebar

Related Questions

I have a form which is loaded from ajax response that contains some textarea
I have a textarea which already contains some content (haml code below) //haml code
I have a client/server application (asp.net), which has a textarea which a user types
i have one text area <textarea name=message id=message class=text_field style=height:200px; width:500px></textarea> if i type
I have an input form with two textareas allowing a user to type in
I have textarea in my site(link shortening site) i want to user enter some
I have a textarea on my page. It has this draggable corner which lets
i need functionaliy which will have TextArea with 1) maximum total lines- 6 and
I input some text in <textarea></textarea> , I enter some line breaks, spaces,etc. purposely.
I'll get some info from an user using textarea. But he can not type

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.