It is currently March 29th, 2024, 8:02 am



Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Emojies in text.
PostPosted: October 25th, 2021, 9:16 am 

Joined: June 15th, 2021, 9:09 pm
Posts: 6
Hello,

My custom RSS use the utf8mb4 (utf8mb4_unicode_ci) charset with MySQLi (PHP).

My RSS item title: Love ❤️

In themaLeecher: Love □

Square instead of hearts.

What is the solution?

Thanks.


Top
 Profile  
Reply with quote  
 Post subject: Re: utf8mb4 charset
PostPosted: October 25th, 2021, 1:53 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Hi,

Emojies are really not supported in a lot of sites and should be removed anyway. You can use replacement to remove all emojies automatically.

You can try to add this replacement to remove them all:

Search for:
Code:
[^\x00-\x7f]+


Replace with:
Code:
(leave empty)


Enable regex search.

Enable to apply to all new leeched messages.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: utf8mb4 charset
PostPosted: October 25th, 2021, 9:36 pm 

Joined: June 15th, 2021, 9:09 pm
Posts: 6
Freddy wrote:
You can use replacement to remove all emojies automatically.


Dear Freddy,

Unfortunately, this does not solve the problem.

Title example:

𝐌𝐲 𝐅𝐈𝐑𝐒𝐓 car 😍

Replaced:

car

Few letters are also unicodes.


Top
 Profile  
Reply with quote  
 Post subject: Re: Emojies in text.
PostPosted: October 26th, 2021, 3:22 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
PM me the URL.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Emojies in text.
PostPosted: October 30th, 2021, 10:03 pm 

Joined: June 15th, 2021, 9:09 pm
Posts: 6
Freddy wrote:
PM me the URL.


Dear Freddy,

The URL is private, sorry. I would be very grateful if these characters were supported in the next themaLeecher update. The WordPress also uses this character encoding and many sites, maybe the half world.


Top
 Profile  
Reply with quote  
 Post subject: Re: Emojies in text.
PostPosted: October 31st, 2021, 5:36 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
I would need URL to test.

I'm not sharing it with anyone. Only for testing.

PMs are private (don't write it here in the topic, send me a PM).

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Emojies in text.
PostPosted: October 31st, 2021, 10:23 am 

Joined: June 15th, 2021, 9:09 pm
Posts: 6
Freddy wrote:
I would need URL to test.

I'm not sharing it with anyone. Only for testing.

PMs are private (don't write it here in the topic, send me a PM).


I sent it (pm). Thanks.


Top
 Profile  
Reply with quote  
 Post subject: Re: Emojies in text.
PostPosted: October 31st, 2021, 9:30 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
It is leeches with correct encoding already.

The problem is that message display area don't support displaying them (you can see that subject is showing correctly since that field does support them).

I don't really plan at the moment any improvements since basically no one is using random unicode characters as text. There are literally normal letters for that which 99.9% sites are using (it's much better for SEO as well).

If you see any post using those weird characters - I would recommend just to ignore those posts completely since they are useless.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

Who is online

Users browsing this forum: Marisol and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Theme designed by stylerbb.net © 2008
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All times are UTC