Help me configurating LC_ALL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Good afternoon, my name is Ricaro Vila, and I want that you please help me with
php. the trouble is:

i have one page info.php and your code is :

<?php
phpinfo();


echo getenv("LANG")."<br>";

$info=nl_langinfo(CODESET);
echo $info."<br>";

setlocale (LC_ALL,'es_PE');
$info2=n<l_langinfo(CODESET);
echo $info2."<br>";
echo getenv("LANG")."<br>";
?>

well when I execute this in my browser, the page show me information about php,
but in the headers enviroment exist a variable called LANG and this have a
value C.
Also in tHe page, $info is printed how ANSI_X3.4-1968 and $info2 how
ISO-8859-1,
because i use the function setlocale() and   getenv("LANG") is printed how C.
Please help me I don't want use the funtion setlocale(); i want know how
configure the varible lang in php or known what make setlocale internaly.

Other thing more is that i open the console and execute el command php -i and
the result is different a my page info.php. In console(terminal) the variable
lang is how iso-8859-1 but when execute info.php the variable lang is C

I think that the problem is with entorno X, but i don't secure.

I hope you understand me, but my english is very bad
Thank a lot for all the help that you can give me
Sincerely
Ricardo vila

P.D. i use gnu/linux fedora core 3 

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux