Problem/Motivation

The method FlippyPager->flippy_generate_link() is using two PHP functions that does not support UTF-8 encoded characters: strlen() and substr().

Steps to reproduce

This is part of the code which generates a truncated label. I believe the problem can be seen when a long label is provided.

Proposed resolution

Replace the two functions (found on line 439 of src/FlippyPager.php) with mb_strlen() and mb_substr() respectively.

Issue fork flippy-3482792

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sergecspne created an issue. See original summary.

sarwan_verma made their first commit to this issue’s fork.

sarwan_verma’s picture

Status: Active » Needs review

Hi,

I have resolved the "UTF-8 encoded characters" issue and created MR!12.
Kindly review it.

Thanks!

sergecspne’s picture

Hi sarwan_verma,

I tested the changes you added in MR!12. They work as expected.

A sincere Thank you,