Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review

file Question mark symbols (encoding)

  • podmentor
  • podmentor's Avatar Topic Author
11 years 11 months ago #415 by podmentor
Question mark symbols (encoding) was created by podmentor
Hello! Thanks for the module. It's great, but I get question marks <?> after the number of lettes in letter count of intro text. The site is in Russian. See attachment. Help me resolve the issue please.

Attachments:

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #418 by admin
Replied by admin on topic Re: Question mark symbols (encoding)
Hello,
I am not sure where this is coming from, since the module cuts off the word and just adds dots (...). Can you check if there is a difference with another font? I had this problem with Greek and now Russian, which are non-latin languages. Maybe a problem of encoding? I will investigate...

Olivier.

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #420 by admin
Replied by admin on topic Re: Question mark symbols (encoding)
Do you have a live website I can check out? That would help. Thank you.

Olivier.

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago - 11 years 11 months ago #421 by admin
Replied by admin on topic Re: Question mark symbols (encoding)
As suspected, it is an encoding issue.
So you can fix your problem before an update of the module, here is the fix you can try out.
Find in the file helper.php the line:
$temp = substr($temp, 0, $letter_count);
Replace it with
$temp = mb_substr($temp, 0, $letter_count);
Let me know if this works for you!

Olivier.
Last edit: 11 years 11 months ago by admin.
The following user(s) said Thank You: podmentor

Please Log in or Create an account to join the conversation.

  • podmentor
  • podmentor's Avatar Topic Author
11 years 11 months ago #423 by podmentor
Replied by podmentor on topic Re: Question mark symbols (encoding)
Thanks a bunch, mate! It does help! =) I wanted to use metadata option for each article to "emulate" letter count to avoid this question marks. But it is easier to modify helper.php. Thanks, works perfectly!

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago - 11 years 11 months ago #424 by admin
Replied by admin on topic Re: Question mark symbols (encoding)
Great! I will add the fix to the next update. Thank you for trying it out.

Olivier.
Last edit: 11 years 11 months ago by admin.

Please Log in or Create an account to join the conversation.