It's best to use UTF8 both for database collation and html content-type. If 
you are using MySQL, you will  also need to run the following query right 
after when the DB connection is initialised (just once):

SET NAMES 'utf8';

hth,
Ken
----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: "NZ PHP Users Group" <[email protected]>
Sent: Sunday, November 23, 2008 1:45 PM
Subject: [phpug] Japanese character encoding??


>
> Im trying to make a Japanese learning site that will have Japanese
> characters and English explanations etc. But I cannot get my Japanese
> characters to print from my database properly :(
>
> I believe I have the appropriate meta tag ... <meta http-
> equiv="Content-Type" content="text/html; charset=Shift_JIS">
>
> If I write the Japanese directly into the HTML all is fine but when I
> call it from mysql all I get is ?'s Viewing the data in phpmyadmin
> works aswell.
>
> Ive tried all the different collation types in my database and still
> no luck.
> Ive never done any foreign language sites before this is really new to
> me can anyone please help?
>
> >
> 



--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to