Trouble Configurating LC_ALL
rvila_at_inictel.gob.pe
Date: 03/31/05
- Previous message: Christofer C. Bell: "Re: Make Gnome app look like KDE"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 31 Mar 2005 07:30:27 -0500 To: fedora-list@redhat.com
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 if 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.
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
- Previous message: Christofer C. Bell: "Re: Make Gnome app look like KDE"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|