HTML5 question

Out of context: Reply #11

  • Started
  • Last post
  • 12 Responses
  • kingsteven0

    you can also set the charset in the http header (ie. how your server delivers the document) for example with php:

    < ?php header('Content-Type: text/plain; charset=ISO-8859-1'); ? >

    but i think the meta tags are meant to override that, you can also force a charset in your browser (View -> Encoding) in Chrome... having the wrong charset in your DB shouldn't cause that error (but would result in fucked up text etc.)

    I found this article useful for debugging a charset issue recently http://www.phpwact.org/php/i18n/… ... I eventually found i was being a dumb fuck and had multiple charset meta tags.

View thread