You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by My...@att.net on 2004/06/21 16:00:40 UTC

[users@httpd] Display characters in Japanese

I am hoping someone will be able to help me or give me some
suggestion and additional ideas to try.
 
I am trying to display Japanese characters using apache 2.0.
 
I can successfully display the Japanese characters if I register an application 
through ap_hook_handler (�.) and add the following directives to my httpd.conf file.
 
***************************
AddDefaultCharset shift_jis
and
AddCharset shift_jis   .jp-jp
***************************
 
Unfortunately my current new application has to be registered through 
ap_hook_access_checker (�..)
 
In my new application I have tried setting the content type 
�text/html�    or      �text/html;charset=shift_jis� 
 
Using 
 
AP_DECLARE(void) ap_set_content_type (�.)
 
For some reason, it appears that the content type is getting reset to
ISO-8859-1 by the server. (I can see this by monitoring the network)
 
I have noticed below comment in function ap_set_content_type (�.)
 
/* Insert filters requested by the AddOutputFiltersByType
         * configuration directive. Content-type filters must be
         * inserted after the content handlers have run because
         * only then, do we reliably know the content-type.
*/
 
I am hoping that this does not mean that content type can only be set in the
ap_hook_handler hook and or there is a work around to my problem.

Thank you for your help

Re: [users@httpd] Display characters in Japanese

Posted by Odhiambo Washington <wa...@wananchi.com>.
* MyServer@att.net <My...@att.net> [20040621 17:01]: wrote:
> I am hoping someone will be able to help me or give me some
> suggestion and additional ideas to try.
>  
> I am trying to display Japanese characters using apache 2.0.
>  
> I can successfully display the Japanese characters if I register an application 
> through ap_hook_handler (?.) and add the following directives to my httpd.conf file.
>  
> ***************************
> AddDefaultCharset shift_jis
> and
> AddCharset shift_jis   .jp-jp
> ***************************
>  
> Unfortunately my current new application has to be registered through 
> ap_hook_access_checker (?..)
>  
> In my new application I have tried setting the content type 
> ?text/html?    or      ?text/html;charset=shift_jis? 
>  
> Using 
>  
> AP_DECLARE(void) ap_set_content_type (?.)
>  
> For some reason, it appears that the content type is getting reset to
> ISO-8859-1 by the server. (I can see this by monitoring the network)
>  
> I have noticed below comment in function ap_set_content_type (?.)
>  
> /* Insert filters requested by the AddOutputFiltersByType
>          * configuration directive. Content-type filters must be
>          * inserted after the content handlers have run because
>          * only then, do we reliably know the content-type.
> */
>  
> I am hoping that this does not mean that content type can only be set in the
> ap_hook_handler hook and or there is a work around to my problem.
> 
> Thank you for your help


AddDefaultCharset UTF-8 in httpd.conf




-Wash

http://www.netmeister.org/news/learn2quote.html

--
+======================================================================+
    |\      _,,,---,,_     | Odhiambo Washington    <wa...@wananchi.com>
Zzz /,`.-'`'    -.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
   |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
  '---''(_/--'  `-'\_)     | GSM: +254 722 743223   +254 733 744121
+======================================================================+
Real computer scientists don't program in assembler.  They don't write
in anything less portable than a number two pencil.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org