PHP: setlocale in Windows 7 -


i have problem setlocale function in php 5.3 in windows 7.

i need set russian locale utf-8 encoding. saw solutions russian_russia.65001, function type of locale returns false.

all solutions designed using in windows xp list of locales in control panel. in windows 7 feature removed.

it's not possible use utf-8 locales on windows systems.:

if provide code page utf-7 or utf-8, setlocale fail, returning null.

only windows code page russian_russia.1251 work (see moodle's table of locales).

you may still try set both , see 1 comes trough:

if ($newlocale = setlocale(lc_ctype, 'ru_ru.utf-8', 'russian_russia.1251')) {    echo 'locale set to: ' . $newlocale; } 

Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -