setlocale(LC_ALL, 'Russian_Russia.1251');
setlocale(LC_ALL, 'Russian_Russia.20866');
setlocale(LC_ALL, 'Russian_Russia.65001');
<?
echo 'locale: ',setlocale(LC_ALL, 'Russian_Russia.1251'),"\n";
echo strftime('day: %d, month: %B, day of the week: %A'),"\n";
echo 'locale: ',setlocale(LC_ALL, 'Russian_Russia.20866'),"\n";
echo strftime('day: %d, month: %B, day of the week: %A'),"\n";
The set of available languages, country/region codes, and code pages includes all those supported by the Win32 NLS API except code pages that require more than two bytes per character, such as UTF-7 and UTF-8. If you provide a code page like UTF-7 or UTF-8, setlocale will fail, returning NULL.
<?php
setlocale(LC_ALL, 'ru_RU.UTF-8');
$results = $modx->runSnippet('getResources', array(
'parents' => 2,
'limit' => 3,
'tpl' => 'tplNews',
'toPlaceholder'=>'ffz'
));