Answer the question
In order to leave comments, you need to log in
Crocosebras setlocale(LC_ALL, "russian")?
<?php
setlocale(LC_ALL, "russian");
$day = strftime('%d');
$mon = strftime('%B');
$year = strftime('%Y');
echo "Сегодня $day число, $mon месяц и $year год.";
?>
Сегодня 31 число, ������� месяц и 2015 год.
Answer the question
In order to leave comments, you need to log in
I solved the problem with this design...
setlocale(LC_ALL, 'russian');
$mon = strftime('%B');
$mon = iconv('windows-1251', 'utf-8', $mon);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question