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

Recent

Welcome to TinyPortal. Please login or sign up.

April 16, 2024, 09:13:30 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,158
  • Total Topics: 21,219
  • Online today: 106
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 48
  • Total: 48

Special characters in the article subject

Started by wildenborch, October 16, 2018, 07:39:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wildenborch

#10
Hi Tino,

This code is working for the special characters but the text after and including " is removed.

This is also happening with
html_entity_decode($mg['subject'], ENT_QUOTES, ISO-8859-15)


I also tried it with this code
un_htmlspecialchars($mg['subject'], ENT_QUOTES)
But this does not solve the " problem.

tino

Quote from: wildenborch on October 17, 2018, 01:14:29 PM
Hi Tino,

This code is working for the special characters but the text after and including " is removed.

This is also happening with
html_entity_decode($mg['subject'], ENT_QUOTES, ISO-8859-15)


I also tried it with this code
un_htmlspecialchars($mg['subject'], ENT_QUOTES)
But this does not solve the " problem.

Thanks, I'll get this fixed for 1.6.1

wildenborch

#12
Tino,

I think the problem was caused by a corrupt file because after I renamed the sources directory and copied the Sources directory from a fresh SMF + Tinyportal 1.60 install the problem is no longer there.

Please ignore the above.
The problem is still there.



wildenborch

#13
Upon some further checking I noticed that on the website with this behaviour, the settings.php file does not have $db_character_set = 'utf8';
All other websites I have do have this code in the settings.php.

After adding this code in the settings.php file the special characters are accepted.

Hopefully this is tomorrow still the same and of not I will striketrough this above sentence as well :)