Welcome to Geeklog, Anonymous Monday, May 27 2024 @ 08:55 pm EDT

Geeklog Forums

HTML Special Characters in a Block

Nathan Burke

Hi. Quick question for you:
I have a block set up that grabs news headlines from another db. Works fine, but I'm getting garbled html characters displaying in the block. On another area of my site, I have the following code:
Text Formatted Code

Which returns no garbled characters...which is nice. So I've been trying to add html_entity_decode to lib-custom.php with no luck. I can add it, but the garbled characters are still displaying. I'm assuming that either in /admin/block.php or in another config file there's something conflicting with html_entity_decode.

Where can I make a change so I can display the correct characters in the block? Right now in Geeklog I get: the company’s where in the other area (non-geeklog) of my site I get: the company's.

Thanks for your help!

Status: offline


Site Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
My guess is that the two sites use different character sets, e.g. one using UTF-8 and the other ISO-8859-1 (or whatever). Special characters won't be in the same position in different character sets and therefore won't display properly.

bye, Dirk

All times are EDT. The time is now 08:55 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content