SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Guru
    Join Date
    Jan 2007
    Posts
    967
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Special characters showing as funny letters inconsistently

    When I test the page below, everything displays normally cross-browser and on different OS's, but my client showed me a screen capture where the special characters displayed as funny characters. Any ideas what could be going on here?

    http://www.cynergydata.com/products-services/vimas/

  2. #2
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,606
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    Are you using DOMDocument() and loadHTML() on content somewhere (either in your template or your functions.php file)?

    If so, you will need to use this on the content:

    Code:
    mb_convert_encoding($input, 'HTML-ENTITIES', 'UTF-8')
    or, when using loadHTML():
    Code:
    $dom->loadHTML(mb_convert_encoding($input,'HTML-ENTITIES','UTF-8'));
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •