This topic is locked
[SOLVED]

 UpperCase with UTF8 characters

2/29/2020 5:16:21 PM
PHPRunner General questions
B
beishmc author

Hello, I use the utf8_general_ci character set for MySQL database and i need to show upper case strings on list and view page in phprunner application. I'm aware of the javascript method "var ctrl = Runner.getControl(pageid, 'FieldName'); ctrl.addStyle('text-transform: uppercase;');" and "$values["field"]=strtoupper($values["field"]);" but on list page it only shows character in upper case partialy, like this: EXAMPLEÅ¡đžćč where just characters without tick are in uppercase.
Is there any way to solve this issue?

K
keithh0427 2/29/2020

There is a way.
Try this:
$values["field"]=mb_strtoupper($values["field"], 'UTF-8');

B
beishmc author 3/1/2020



There is a way.
Try this:
$values["field"]=mb_strtoupper($values["field"], 'UTF-8');


Thank you, it's working great.