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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:28:52+00:00 2026-06-05T14:28:52+00:00

I have a page http://199.193.248.80/test/test.php that contains the « character. But when I read

  • 0

I have a page http://199.193.248.80/test/test.php that contains the « character.

But when I read this page with js on http://199.193.248.80/test/test.html, the character turns into �

Both pages are using Charset Windows-1252 so I have no idea why it works on one page but not the other. What needs to be done to fix this?

  • 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-05T14:28:54+00:00Added an answer on June 5, 2026 at 2:28 pm

    This is probably because PHP sets a different character set (when serving the .php) in the headers than Apache does (when serving the .html). Browsers use the character set that’s mentioned in the response headers; it overrides the <meta> tags in fact.

    By default PHP chooses iso-8859-1 I believe, but you can override the character set in PHP by using:

    header('Content-Type: text/html; charset=windows-1252');
    

    Or change the php.ini for a global change.

    See also:

    • http://httpd.apache.org/docs/2.0/mod/core.html#adddefaultcharset (for Apache)
    • http://www.php.net/manual/en/ini.core.php#ini.default-charset (for PHP)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a website with transparencies which work in IE9: http://199.193.248.80/transparency.html But if I
I have a page http://www.sample.com/load.html ,which loads javscript file http://example.com/test.js which contains code for
I have this test page: http://www.problemio.com/index_new.php and I am trying to make some jQuery
I have this page at http://kornar.co.uk/example.html But it doesnt render HTML. I know its
I have this page: http://www.thedome.it/cmsms/index.php?page=alla-spina I'd like to send a newsletter to subscribers every
Note: I'm using Google Chrome Currently I have this test page http://www.evecakes.com/doodles/canvas_size_issue.htm It should
I am using JQuery Accordion. I have this page here: http://www.hauppauge.com/site/support/support_colossus.html#tabs-6 What happens is
Consider this page @ http://www.bloodbone.ws/screwed.html I need to be able to have the a.grow
I have this page below: http://www.tirengarfio.com/rs2/web/borrar.php What should i do to put the link
I have this page http://xn--e-nsker-r1a.dk and I have body and html 100%, also #site_main

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.