4

Having an issue with html special characters not displaying correctly in chrome see

Example Page

I have gone through and resaved every file in the project as utf-8 confirmed my meta tag deceleration and confirmed that chrome is set to default to utf-8. No issues in firefox or ie. Any help would be greatly appreciated. Im pulling my hair out.

TEN Design
  • 717
  • 3
  • 13
  • 31

3 Answers3

4

How about setting the page to be UTF-8?

It's currently:

Content-Type:text/html;charset=ISO-8859-1

Which if you're using Apache: How to change the default encoding to UTF-8 for Apache?

Community
  • 1
  • 1
Danack
  • 24,939
  • 16
  • 90
  • 122
  • 3
    from my shell.html – TEN Design May 20 '13 at 21:27
  • 1
    Whatever webserver you are using (you haven't said which) is setting a header('Content-Type: text/html;charset=ISO-8859-1'); which is sent before the HTML is started. – Danack May 20 '13 at 21:36
  • 1
    Ok, so how do i fix this in my html? so that the encoding is correct? – TEN Design May 20 '13 at 21:38
  • 1
    Our web server is a privately maintained box. – TEN Design May 20 '13 at 21:41
  • 3
    You can't fix it in the HTML. Whatever software you're using as a webserver needs to be told to send the header content-type with UTF-8. What software for a web server are you using? – Danack May 20 '13 at 21:41
  • 1
    server is running LAMP and PYTHON. This is a new issue however as on all our other sites it works fine. Switching to an html5 doc type or using twitter bootstrap are the only two new variables? – TEN Design May 20 '13 at 21:42
  • 1
    From our server admin re: http://stackoverflow.com/questions/913869/how-to-change-the-default-encoding-to-utf-8-for-server That directive only does anything when Apache itself is generating the page, which isn't the case here. Cherrypy is generating the page, and Apache is just passing it through. Cherrypy does use utf-8 already, but the version of cherrypy on dev has a bug that affects the transmission of the content-type header. So I need a work around! – TEN Design May 21 '13 at 00:52
3

Set browser default encoding to UTF-8:

go to Settings->Show advanced settings->Customize fonts, set Encoding to Unicode(UTF-8)

Tested at chrome Version 42.0.2311.90 (64-bit)

Pingan Yi
  • 103
  • 1
  • 2
  • 22
    This option doesn't appear in Chrome 49. [screenshot](http://i.imgur.com/9dpE6bw.png) – mpen Apr 25 '16 at 00:52
3

As of mid-2017, it appears Chrome has removed the manual encoding menu, you now need to download a Chrome extension to manually change it.

See this post: https://superuser.com/questions/1160003/how-do-i-change-the-character-encoding-for-a-webpage-in-chrome

Andrew Zick
  • 582
  • 7
  • 23