Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

August 07, 2020, 03:18:29 PM

Login with username, password and session length
Members
  • Total Members: 3786
  • Latest: Deaks
Stats
  • Total Posts: 190586
  • Total Topics: 20865
  • Online Today: 93
  • Online Ever: 917
  • (January 21, 2020, 09:02:26 AM)
Users Online
Users: 1
Guests: 64
Total: 65

Author Topic: Pasting HTML Article  (Read 389 times)

0 Members and 1 Guest are viewing this topic.

Offline lurkalot

  • Administrator
  • *
  • Posts: 6814
    • Camera Craniums
Re: Pasting HTML Article
« Reply #10 on: July 25, 2020, 03:17:33 PM »
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)

Offline Lesmond

  • Do what you have to!
  • Administrator
  • *
  • Posts: 3146
    • Tiny Pix... Free Image Hosting and Sharing.
Re: Pasting HTML Article
« Reply #11 on: July 25, 2020, 03:27:18 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.
Please don't PM me for support without an invitation.


Offline lurkalot

  • Administrator
  • *
  • Posts: 6814
    • Camera Craniums
Re: Pasting HTML Article
« Reply #12 on: July 25, 2020, 04:11:26 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 😲

Offline tino

  • Developer
  • *
  • Posts: 1940
Re: Pasting HTML Article
« Reply #13 on: July 25, 2020, 04:18:06 PM »
That’s an entity encoding error.

mb_entity_encode and UTF-8 will probably fix it.

Online @rjen

  • Support Team
  • *
  • Posts: 2314
    • FJR-club Nederland
Re: Pasting HTML Article
« Reply #14 on: July 26, 2020, 12:52:32 AM »
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 TP2.0.0 on SMF2.0 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 (latest Github)
Want to check what php version I am testing on? See: PHP Info

Offline Lesmond

  • Do what you have to!
  • Administrator
  • *
  • Posts: 3146
    • Tiny Pix... Free Image Hosting and Sharing.
Re: Pasting HTML Article
« Reply #15 on: July 26, 2020, 02:56:38 AM »
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.
Please don't PM me for support without an invitation.


Offline lurkalot

  • Administrator
  • *
  • Posts: 6814
    • Camera Craniums
Re: Pasting HTML Article
« Reply #16 on: July 26, 2020, 04:47:26 AM »
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?