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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:25:51+00:00 2026-06-03T05:25:51+00:00

I am returning some data from the database which is entered using many different

  • 0

I am returning some data from the database which is entered using many different methods, usually copied and pasted from word.

Rather than attempt to manually HtmlEncode every last character I had the bright idea to use the content-type on the page to load a different character set. Currently I am not doing anything to overwrite any default content-type. If I ran locally, the content-type was shown as utf-8 and the “foreign” characters appeared. When uploaded, the content-type was coming back as ISO-8859-1 and “foreign” characters were appearing as question marks (of two varieties…).

I then overwrote the character set returned using Response.Charset = "utf-8"; and despite the response headers correctly showing utf-8, I am still getting question marks in place of the correct characters. Please see the images below:

Local Page

Local page, all characters appearing correctly

Local Page Header

Local page header

External Page (notice two types of question mark)

External page, notice two types of error question marks

External Page Header

External page header

I’ve followed http://htmlpurifier.org/docs/enduser-utf8.html but apart from needing UTF-8 I couldn’t find any solution.

  • 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-03T05:25:52+00:00Added an answer on June 3, 2026 at 5:25 am

    Solved. Still not sure entirely how everything’s working but I’ll explain what I did.

    Despite headers saying the content-type was UTF-8, this didn’t solve the issue. As hinted at by Oded, I found in IIS > .Net Globalisation two settings (Requests and Responses) which were set to ISO-8859-1.

    Changing these to UTF-8 solved the trick.

    As for why, I’m not sure, as the headers seem to be the same, so if anyone could explain what’s happening that would be brilliant.

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

Sidebar

Related Questions

I am returning data from a sqlite3 database the some else wrote. I am
I have this syntax for grabbing some data from database, I using codeigniter's active
I have created a repository that is returning data from my database using Entity
My Webservice is currently returning a HTTPResponse which contains thousands of data from a
So I have some data that's coming back from a database query, and the
I've been asked to populate a flash file with some data from a database.
I'm returning some preformtatted data from the server as a string. this is passed
I have a query returning the counts of some data, but I do NOT
The db I am querying from is returning some null values. How do I
I am trying to get serialized results from a WCF service from database using

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.