[Adaptable 1.71] Problem with UTF8 caracters in the course title when truncating it

[Adaptable 1.71] Problem with UTF8 caracters in the course title when truncating it

by Pierre-Jean Chancellier -
Number of replies: 2

Hi !  I notice a problem and I have found the solution.

Here is the problem in the course title :

Here is the solution :
In the ./renderers.php file, at line 1971, replace substr() function by mb_substr() one.

I hope this tip could help

Average of ratings: -
In reply to Pierre-Jean Chancellier

Re: [Adaptable 1.71] Problem with UTF8 caracters in the course title when truncating it

by Jez H -

Hi Pierre,

Thanks for reporting this and proposing a solution, we will look at this shortly...

In reply to Pierre-Jean Chancellier

Re: [Adaptable 1.71] Problem with UTF8 caracters in the course title when truncating it

by Manoj Solanki -


Thanks for spotting this.

This has been fixed and if required immediately, is available from our repository in bitbucket.

 I used core_text::substr from the core library which handles this scenario smile

M