TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,236
  • Total Topics: 21,353
  • Online today: 259
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 308
  • Total: 308

Special UTF8 characters not showing correctly in articles (swedish and italian)

Started by spidernik84, February 25, 2011, 03:54:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

spidernik84

I modified the files exactly as you indicated, but the title still gets corrupted and the body shows as empty.
I double checked the modifications and even started from scratch.

Since I want to be sure I didn't make a mistake, would you be so kind to attach the files modified by you? Thank you :)

IchBin

I have not modified any files. I have only looked at the code and given you what things I would fix. Let me take another look.

ETA:
Code (find in Sources/TPSubs.php) Select
function tp_sanitize($value, $strict=false)
{
return htmlentities(strip_tags($value),ENT_QUOTES);
}


Code (replace with) Select
function tp_sanitize($value, $strict=false)
{
        global $context;
return htmlentities(strip_tags($value), ENT_QUOTES, $context['character_set']);
}

sturmkatze

Has this been fixed? I have a real problem w/ pages that foreign words on them, such as this one: http://www.reenactor.net/forums/index.php/page,180.html Anything like this, umlauts, whatever, throws weird code. Any answers yet???

IchBin


sturmkatze

That being the one I have t wait for dragooon to add? :P All dis stuff being causin' ma brains to melt.

Kike_GL

My forum is in Spanish_latin-utf8 and I have the same problem. My solution is to use special HTML codes.

http://www.utexas.edu/learn/html/spchar.html
Saludos, Kike_GL

IchBin


This website is proudly hosted on Crocweb Cloud Website Hosting.