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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:38:36+00:00 2026-05-15T23:38:36+00:00

I had several HTML files on an Apache server which had special characters. For

  • 0

I had several HTML files on an Apache server which had special characters. For example, they have © instead of ©. They were working fine but once I migrated those files to a new server (also Apache), all those characters are not properly being displayed in the browser.

I know it’d be better to replace those characters with HTML entities, but as they are thousands of them I just can’t do it in a short period of time. So, my questions are: is there any configuration directive on the Apache server that has to be changed in order to server those files correctly? Can it be solved by changing the HTML meta headers?

Edit

Geert has given the correct answer to this kind of problems. Though, in my case there were some files encoded with ISO-8859-1 and the rest encoded with UTF-8. The solution was to convert from ISO-8859-1 to UTF-8, which can be done by using iconv:

iconv --from-code=ISO-8859-1 --to-code=UTF-8 ./from.php > ./to.php
  • 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-15T23:38:36+00:00Added an answer on May 15, 2026 at 11:38 pm

    Set the correct encoding in your Apache configuration with the AddDefaultCharset (http://httpd.apache.org/docs/2.0/mod/core.html#adddefaultcharset). E.g., for setting UTF-8 encoding to all documents, one would use:

    AddDefaultCharset utf-8
    

    However, use this directive carefully. It will set the charset of all documents, so you have to make sure that all these documents are encoded the same. If your documents have different encodings, then don’t use this.

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

Sidebar

Related Questions

I have had several situations when i would like to do that. This could
I have tried several things so far, but I haven't had much luck yet.
In my limited experience, I've been on several projects that have had some sort
Had a idea and now trying to make it happen. Idea: Have a HTML
I have been importing my raw IIS log files into a SQL Server table
if I had several websites and I would want to read file.html in every
I've had several cases where I had a page with several query parameters -
I am starting to get into programming as a hobby, I had several classes
I'm trying to verify on the fly generated bytecode! I already had several attempts,
Ok, I'm now very confused. After my last question had several people comment about

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.