Welcome to Geeklog, Anonymous Thursday, March 05 2026 @ 06:07 am EST
Geeklog Forums
HTML Special Characters in a Block
Nathan Burke
Anonymous
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:
$break=html_entity_decode($trytobreak);
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!
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
$trytobreak=$myrow["story"];$break=html_entity_decode($trytobreak);
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!
19
19
Quote
Status: offline
Dirk
Site Admin
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
bye, Dirk
23
18
Quote
All times are EST. The time is now 06:07 am.
- 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