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

  • Home
  • SEARCH
  • 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 7654433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:15:16+00:00 2026-05-31T12:15:16+00:00

My "em dash" character is shown differently on two servers. When I visit Server

  • 0

My "em dash" character is shown differently on two servers.

When I visit Server 1: –

When I visit Server 2: â€"Â

I’m not using any database connection, just pure HTML.

Following are the first 4 lines of my HTML file:

<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta charset="utf-8" />

Please help me here, I can’t see what’s wrong with it.

-solution-

Like suggested below I replaced my dash with

&#8211;

To make the server display my ►-character correctly I had to place a .htaccess in the folder with the following line of code:

AddDefaultCharset UTF-8

Thanks everyone!

  • 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-31T12:15:17+00:00Added an answer on May 31, 2026 at 12:15 pm

    It’s possible they’re being served with different encodings. In UTF-8, you can just include the m-dash directly (—), but if the page is being served as ASCII, it needs to be encoded as &mdash;. Take a look at the source and see which one it uses.

    I think this is what’s happening, because “—” is multiple bytes long, so it would be interpreted as multiple ASCII characters.

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

Sidebar

Related Questions

Are DES Encryption called "One Way Encryption" or "two way Encryption" ? Are there
I have a String: "{key1:value1}{key2:value2}" . I want to split these string using regular
"painting/qpathclipper.cpp", line 1643.30: 1540-0274 (S) The name lookup for "fuzzyCompare" did not find a
"NSPasteboard objects transfer data to and from the pasteboard server. The server is shared
The problem is "after inserting a data using linq2sql & do submit changes ,
In the "PHP Cookbook", they say (p.589) that to properly set the character encoding
style="border:solid 1px transparent" is not working in IE6. Instead it shows a black border.
$(".guide").focus(function(){ $(this).removeClass("guide").val(""); }); I just need to know if there's something else I need
How can I run "git status" and just get the filenames as opposed to
Using "repeatable read", it should be possible to produce a phantom read, but how?

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.