Advertisement:

Author Topic: Emojis, Emoticons, Etc...  (Read 1447 times)

datlamp

  • Newbie
  • *
  • Posts: 19
Emojis, Emoticons, Etc...
« on: June 20, 2016, 07:54:41 pm »
Hey everyone! New to the Osclass community! :)

I'm sure a lot of us have users who use our sites on mobile. When my users try to use emoticons from their smartphones, it automatically deletes everything after that, or completely does not recognize the emoji. Is there any way to allow emoji support without having everything removed?

datlamp

  • Newbie
  • *
  • Posts: 19
Re: Emojis, Emoticons, Etc...
« Reply #1 on: June 22, 2016, 12:56:43 am »
bump

datlamp

  • Newbie
  • *
  • Posts: 19
Re: Emojis, Emoticons, Etc...
« Reply #2 on: June 24, 2016, 12:50:53 am »
bump

datlamp

  • Newbie
  • *
  • Posts: 19
Re: Emojis, Emoticons, Etc...
« Reply #3 on: June 25, 2016, 10:52:25 pm »
Bump

datlamp

  • Newbie
  • *
  • Posts: 19
Re: Emojis, Emoticons, Etc...
« Reply #4 on: June 29, 2016, 06:08:27 pm »
bumpity bump ;)

datlamp

  • Newbie
  • *
  • Posts: 19
Re: Emojis, Emoticons, Etc...
« Reply #5 on: July 01, 2016, 03:20:34 am »
Someone has to know how to solve this. Special characters and emojis get automatically removed

fre2mansur

  • Hero Member
  • *****
  • Posts: 711
Re: Emojis, Emoticons, Etc...
« Reply #6 on: July 02, 2016, 05:41:16 pm »
in osclass site everyone posts classified ads.. its not forum or chatting site so emoji no need for classified sites.. that's only osclass not implement the emojis.

datlamp

  • Newbie
  • *
  • Posts: 19
Re: Emojis, Emoticons, Etc...
« Reply #7 on: July 03, 2016, 03:18:53 am »
The second largest classified ad site in the world Backpage recognizes emoji support due to a majority of their users posting by mobile. Also even if that was the case, if a user posts an emoji by accident all other content in their ad will be removed due to a glitch

fre2mansur

  • Hero Member
  • *****
  • Posts: 711
Re: Emojis, Emoticons, Etc...
« Reply #8 on: July 03, 2016, 10:21:27 pm »
If you think that was a bug.. you can request  osclass to fix.. you can post your idea to osclass.uservoice.com

DVyneDesign

  • Newbie
  • *
  • Posts: 7
Re: Emojis, Emoticons, Etc...
« Reply #9 on: May 23, 2017, 06:42:49 pm »
This seems to be an unresolved issue..

I've been working on trying to fix it and have converted my database to UTF8MB4 and set all the tables as utf8mb4_unicode_ci

In db.php I've set it to utf8mb4..

Now instead of deleting the entire ad when a users inputs an emoji from their mobile device it replaces the character with ?'s (4 question marks) and the rest of their text still remains..  Having the user loose all their input because they input an emoji is definitely a bug..  30% of users are mobile devices..

Using a separate script I can easily write and read emojis to a table in the database..

However OSClass still doesn't store the emoji nor will it read them..  If I manually put an emoji in database in the ad title for example osclass read it from the database and replaces it with a single question mark.  If a user puts an emoji in the title or ad it replaces them with 4 question marks in the table..

The problem is somewhere in HTMLPurifier and the way osclass is cleaning the html..  I'm still trying to track down the functions that strip out special characters..  I'm guessing I'll probable have to manually enter all the emoji values into the filters once I find them..

Considering the rapid growth of mobile users I think UTF8MB4 support is essential..

brian4274

  • Newbie
  • *
  • Posts: 6
Re: Emojis, Emoticons, Etc...
« Reply #10 on: June 21, 2018, 05:31:06 am »
when i changed the Unicode to utf8mb4 it worked perfectly

find this
$this->db->set_charset('utf8');

and change it to this
$this->db->set_charset('utf8mb4');

steve.ram

  • Newbie
  • *
  • Posts: 8
Re: Emojis, Emoticons, Etc...
« Reply #11 on: July 02, 2019, 01:20:12 pm »
when i changed the Unicode to utf8mb4 it worked perfectly

find this
$this->db->set_charset('utf8');

and change it to this
$this->db->set_charset('utf8mb4');

How did you do that bro?