Problem with accentuation on a website

Asked

Viewed 555 times

1

On a site I developed, I have the following text: The line of hair removal..., this text opens perfectly in Windows, in any browser. Already, on Mac, the text appears as follows: The line of depilac,.

What can it be?

The coding of the site is like this:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  • This occurs in which browser?

  • Dude, on Mac I checked in Google Chrome, but in Windows Chrome it’s OK.

  • I believe it’s on safari...

  • Windows Safari is Ok.

  • 1

    You’ve already included the statement <meta> identifying the charset. But the files HTML are in this pattern (UTF-8)?

3 answers

3


In order to write depilation and appear as you write with the accent you have to change the encoding to:

<meta http-equiv="Content-Type" content="text/html; charset=8859-1" />

Otherwise you’ll have to write Depila&ccedil;&atilde;o to appear Waxing.

  • Hello. This text is manageable, our system already does it automatically. IE, if it were that, it would give problem in Windows too.

  • I didn’t get your answer

  • I don’t need to inform the charset, our content manager already does this automatically.

  • So the problem is not of coding but of browser.

  • You can force the browser encoding?

  • 1

    You have to think that those who will use the site will not have the browser source changed to read your page if the charset is well configured for what your manager debits, a piece of advice I had a similar problem to this one and the question was in the extensions I had accidentally blocked and solved with a complete disinstação.

  • By the way, what solution was adopted? Changing the charset or the uninstallation.

  • Dude, this is in my bug queue, I’m only going back to it next week ahahah. Thanks :P

Show 3 more comments

0

Use an Htmlenconde:

HttpUtility.HtmlEncode(myString);

This code would be for a. NET application, but you can also use jQuery to solve this:

$('#campo').text(value).html();

0

Two possible solutions:

1) Apparently may be a Mac font problem.
Open Universal Type Client, you may have 2 conflicting Arial source versions.
Select the universal copy of the Arial font and deactivate it.

2) Change encoding in Chrome settings
Tools (Tools) > Encoding (Encoding) and select Auto Detection (Auto-Detect) option).

  • This could be it. Very strange that this is happening only with this site. Since I always use the same settings.

  • On Mac, besides Chrome, have you tried with another browser? worked?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.