tags:

views:

6

answers:

1

I'm running PHP 5.3.0, Apache 2.2.11 on Windows 7 and I tried to run this:

setlocale(LC_ALL, 'sv_SE.UTF-8');
print_r(localeconv());

And got this:

Array
(
    [decimal_point] => .
    [thousands_sep] => 
    [int_curr_symbol] => 
    [currency_symbol] => 
    [mon_decimal_point] => 
    [mon_thousands_sep] => 
    [positive_sign] => 
    [negative_sign] => 
    [int_frac_digits] => 127
    [frac_digits] => 127
    [p_cs_precedes] => 127
    [p_sep_by_space] => 127
    [n_cs_precedes] => 127
    [n_sep_by_space] => 127
    [p_sign_posn] => 127
    [n_sign_posn] => 127
    [grouping] => Array
        (
        )

    [mon_grouping] => Array
        (
        )

)

What is going on here? Why are basically all the values empty or strange?

A: 

Apparently locales are named differently on Windows... sigh... This fixed it:

setlocale(LC_ALL, 'sv_SE.UTF-8', 'sve');
Svish