[FX.php List] Ongoing saga with Japanese text encoding

Vision Computer Consulting info at visioncomputerconsulting.com
Tue Aug 21 23:36:11 MDT 2007


Bob.
,

The ol fashioned way is to configure the web server.

The vhost needs:
AddType "text/html;charset=Shift_JIS" .html

you could put that in a .htaccess file if you don't have root for the  
server.

Stephen

P.S the japanese site I admin uses:

<meta http-equiv="Content-Type" content="text/html;  
charset=windows-1252"> on the page.


On Aug 21, 2007, at 9:45 PM, Bob Patin wrote:

> Well, I thought I'd gotten past the problem with my client's pages  
> which use this META tag:
>
> <meta http-equiv="Content-Type" content="text/html;  
> charset=shift_jis">
>
> Unfortunately, even though utf8_encode() takes his Japanese  
> characters and encodes it for PHP, the encoding ends up garbling  
> the text (which I didn't notice in the database).
>
> So his META tag won't work with PHP, even when I take the POST data  
> and use utf8_encode() to encode it.
>
> Before Gjermund tells me *again* that they should be using the  
> UTF-8 encoding, I've already told my client about that, and he  
> keeps insisting that some of their clients' computers won't be able  
> to read their pages. Whether he's right or not I can't know since  
> I'm not Japanese...
>
> Has anyone on this list found a way around this, other than using  
> the UTF-8 META tag (which my client steadfastly insists won't work  
> for his clients)?
>
> Bob Patin
> Longterm Solutions
> bob at longtermsolutions.com
> 615-333-6858
> http://www.longtermsolutions.com
>
>   CONTACT US VIA INSTANT MESSAGING:
>      AIM or iChat: longterm1954
>      Yahoo: longterm_solutions
>      MSN: tech at longtermsolutions.com
>      ICQ: 159333060
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20070821/55363b2c/attachment.html


More information about the FX.php_List mailing list