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

Recent

Welcome to TinyPortal. Please login or sign up.

March 28, 2024, 08:40:52 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,104
  • Total Topics: 21,212
  • Online today: 176
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 181
  • Total: 182
  • illori

Pasting HTML Article

Started by Lesmond, July 25, 2020, 07:32:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lurkalot

Quote my post or click to modify it, you'll see your smiley is showing while mine is just showing the code.  Hence why I'm wondering where those smileys came from.

Just testing this ?😎

And also this  8)

Lesmond

Quote from: lurkalot on July 25, 2020, 10:08:41 PM
Where were you copying the text from Les?  Just wondering what generated those smiles

Originally from facebook, I thought that may have been the problem, so I copied the text to notepad in plain text, the smiles were copied into notepad too.

But it seems that it happens even if you copy from here too, as your test confirmed.

lurkalot

Quote from: Lesmond on July 25, 2020, 10:27:18 PM
Quote from: lurkalot on July 25, 2020, 10:08:41 PM
Where were you copying the text from Les?  Just wondering what generated those smiles

Originally from facebook, I thought that may have been the problem, so I copied the text to notepad in plain text, the smiles were copied into notepad too.

But it seems that it happens even if you copy from here too, as your test confirmed.

Seems that TP doesn't like Emoji's 😲

tino

Quote from: tino on July 25, 2020, 08:46:59 PM
That's an entity encoding error.

mb_entity_encode and UTF-8 will probably fix it.

@rjen

Just to confirm: checked it with Tp 200 on SMF 2.0 and 2.1

On SMF 20 the text is parsed and saved (smiley is saved as multiple question marks?)

On SMF 21 the database error shows

So it is an issue that only occurs on SMF 2.1 with both TP 167 and 200
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Lesmond

Just to point out, using an emoji from the editor works OK with no error, but copying one from elsewhere or using one from chromes built in emojis will give the error.




So to reiterate, if you copied this  :) you would not get an error.

If you copied this 😒 from chrome you would.

lurkalot

Quote from: tino on July 25, 2020, 11:18:06 PM
Quote from: tino on July 25, 2020, 08:46:59 PM
That's an entity encoding error.

mb_entity_encode and UTF-8 will probably fix it.

Hopefully Tino, thank you.  Think they addressed this at SMF 2.0.16, then done the same to 2.1 around the same time. 

Curious about the UTF-8 thing though, isn't 2.1 installed as UTF-8 by default, or do you mean something else?