Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 12:13 pm 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!
8
7
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
9
7
Quote
All times are EST. The time is now 12:13 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