I'm trying to make a language string lowercase. strtolower works fine for most languages, but for some language this just returns ? (bunch of questionmarks, which are filtered out of this post).
<?php
echo strtolower('Hello');
?>
output:
hello
The file is correctly saved in utf-8 and the html-header is also in utf-8.
<?php
echo 'Strange language string (which this forum can not display)';
?>
outputs correctly.
So the problem is that when trying to make a string lowercase, in some languages the output becomes a bunch of questionmarks.
Is there a workaround to make the strings lowercase only for languages which support this?