Short day of the week representation and UTF8

Found a bug?
Let me know so I can sort it out

Short day of the week representation and UTF8

Postby twigg » Sun Jun 05, 2011 7:21 pm

The bug exists in version 3.03.03.

generating 1-letter day labels for month calendar is done using single-byte char substr().

File: ac-includes\functions.inc.php
Lines: 43,51,52.


In my language one day in a week starts with two-byte utf-8 character.
I changed it to:

Code: Select all
$weekday = mb_substr($lang["day_".$k.""],0,1,'UTF-8');


and it seems to be rendered correctly now.
twigg
 
Posts: 1
Joined: Sun Jun 05, 2011 7:10 pm

Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron