Mulit-language settings in Apache server
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Web Servers on Unix and Linux > Mulit-language settings in Apache server




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Mulit-language settings in Apache server  
bluevox@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-07-07 06:25 AM

As I remember if I made a settings on Apache like this:

AddDefaultCharset   UTF-8

Then I can only use this charset, but now I'm facing a problem that my
client requesting for multi-language support (big5, gb2312, etc). And
I cannot simply remark the upper Apache script because it will affect
another website in the server and also I cannot change the client
program code anymore(eg: change file name into xxx.php.fr to support
French), what can I do to overcome this problem?

Many thanks.






[ Post a follow-up to this message ]



    Re: Mulit-language settings in Apache server  
Nick Kew


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-07-07 12:21 PM

On 6 Mar 2007 18:23:21 -0800
bluevox@gmail.com wrote:

> As I remember

Why?  We have the luxury of this little thing called the Internet,
which means you can look that kind of thing up.

>	 if I made a settings on Apache like this:
>
> AddDefaultCharset   UTF-8
>
> Then I can only use this charset,

The documentation of AddDefaultCharset tells you to what extent
that is true, and points to how you can override it.


>	(eg: change file name into xxx.php.fr to support
> French), what can I do to overcome this problem?

Then look at the documentation of content negotiation for
why that approach will work fine, too.


--
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/





[ Post a follow-up to this message ]



    Re: Mulit-language settings in Apache server  
Andreas Prilop


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-07-07 06:18 PM

On Wed, 6 Mar 2007, bluevox@gmail.com wrote:

> As I remember if I made a settings on Apache like this:
> AddDefaultCharset   UTF-8
> Then I can only use this charset,

Wrong. This is the encoding (charset) for documents that
have no encoding (charset) specified otherwise. For example,
you could write into your  .htaccess  file:

AddCharset   iso-8859-1   1
AddCharset   iso-8859-2   2
AddCharset   iso-8859-5   5

Then your documents  mypage.html.1  anotherpage.html.2
yetanotherpage.html.5  have the encodings ISO-8859-1,
ISO-8859-2, and ISO-8859-5, resp. The URLs could be
written as

http://www.example.com/mypage.html
http://www.example.com/anotherpage.html
http://www.example.com/yetanotherpage.html

--
In memoriam Alan J. Flavell
http://groups.google.com/groups/sea...:Alan.J.Flavell





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:21 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register