php-i18n Digest 21 Mar 2001 19:13:06 -0000 Issue 59

Topics (messages 140 through 145):

Re: Encoding detection
        140 by: Gustav Foseid
        141 by: Atanas Vassilev
        142 by: Gustav Foseid
        143 by: Atanas Vassilev

A NETWORK MARKETER?
        144 by: timmyralley8627.juno.com

Apache _PHP----Help
        145 by: OBB

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------


Atanas Vassilev:
> I need a way to detect default browser encoding so that i can set a
> variable for language and present the whole site in different
> languages based on encoding. I know encoding does not determine
> language but I only have to switch between german and bulgarian so in
> my case encoding will do the trick... of course if I knew a way to get
> the encoding of the user's browser...

You have the information you need in $HTTP_ACCEPT_CHARSET.

-- 
Gustav Foseid, Initio IT-løsninger AS
[EMAIL PROTECTED]




Thanks for your timely cooperation.
In fact following the direction you gave me I found out that
$HTTP_ACCEPT_LANGUAGE was what would work even better....
Something strange happened though:
I formed my include like this:
include "lang_".$HTTP_ACCEPT_LANGUAGE.".INC";
So, I have 2 files - lang_bg.inc and lang_de.inc. If I switch my regional
settings from Bulgarian to German-standard and browse the site with IE
everything's just fine - but if I try NS all of a sudden
$HTTP_ACCEPT_LANGUAGE has the value of "en" no matter if my regional
settings are Bulgarian of German.
Any ideas as to what the workaround for this would be?


Gustav Foseid <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Atanas Vassilev:
> > I need a way to detect default browser encoding so that i can set a
> > variable for language and present the whole site in different
> > languages based on encoding. I know encoding does not determine
> > language but I only have to switch between german and bulgarian so in
> > my case encoding will do the trick... of course if I knew a way to get
> > the encoding of the user's browser...
>
> You have the information you need in $HTTP_ACCEPT_CHARSET.
>
> --
> Gustav Foseid, Initio IT-løsninger AS
> [EMAIL PROTECTED]
>
> --
> PHP Internationalization Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






Atanas Vassilev:
> I formed my include like this:
> include "lang_".$HTTP_ACCEPT_LANGUAGE.".INC";

This will not work properly. Firts of all, youmight get a request from
someone having another language set in their preferences. You can also have
more than one language set, in my requests HTTP_ACCEPT_LANGUAGE is set to
"no, en, sv".

-- 
Gustav Foseid, Initio IT-løsninger AS
[EMAIL PROTECTED]




You've been quite helpful for which I thank you very much!
I found an article in phpbuilder.com introducing NCTLS - a class that checks
the preferred languages and looks for a language file untill it finds a
match - now I have it up and running ;-)

There's one more issue that bothers me... :
On my site I have to use both german umlauts (&uuml; for example) and
cyrillic (windows-1251) charset - IE handles them perfectly but NS either
shows windows-1251 chars correctly (when you switch to that encoding of
course) or umlauts, but only if the encoding is iso-88591 in which case I
loose the cyrillic symbols.
What can I do about this?



Gustav Foseid <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Atanas Vassilev:
> > I formed my include like this:
> > include "lang_".$HTTP_ACCEPT_LANGUAGE.".INC";
>
> This will not work properly. Firts of all, youmight get a request from
> someone having another language set in their preferences. You can also
have
> more than one language set, in my requests HTTP_ACCEPT_LANGUAGE is set to
> "no, en, sv".
>
> --
> Gustav Foseid, Initio IT-løsninger AS
> [EMAIL PROTECTED]
>
> --
> PHP Internationalization Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>









ATTENTION:  ANY SERIOUS NETWORK MARKETER
TAKE A LOOK AT THE FOLLOWING OPPORTUNITY I CAME ACROSS!!
IF YOU PLUG INTO THEIR PROVEN SYSTEM, THEY GUARANTEE YOU SUCCESS, 
AND PROVIDE YOU WITH FREE LEADS TO BUILD YOUR GROUP!!


DO NOT LET THIS SLIP AWAY!!  CLICK BELOW AND FIND OUT AS I DID,
WHY THESE GUYS ARE THE LEADERS IN THE INDUSTRY!!



http://www.geocities.com/businessupdates2000




*****************************************************************
THIS EMAIL COMPLIES WITH ALL REGULATIONS.  TO BE REMOVED WITHIN 
24 Hours, SIMPLYEMAIL [EMAIL PROTECTED] FOR IMMEDIATE 
REMOVAL FROM ANY FUTURE EMAILS FROM OUR COMPANY.
*****************************************************************




I have  problem making apache1.3.17win32 and php4.0.4 to work on win98se I
am  able to  load  both apache and php on startup,did a few php and apache
cofiguration i read from the  manual and i wrote a script in php and when  I
execute the php script in apache i got the same php script  that i wrote
What am i doing wrong, can someone point me to the right direction, i am
willing to send  php.ini and httpd.conf to anyone who is willing to help.







Reply via email to