Re: Japanese text not displaying correctly.

[email protected] (Dennis browne)
Newsgroups gmane.comp.php.internationalization
Organization PHPDiscuss.com
Message-ID <[email protected]>
Thanks for the reply Jean-Christian.

I'm using IE5+ and NS4+.

I did not save the file in UTF-8 format. After trying that though what
happens is odd characters appear on the first line of my page. I am
guessing from the UTF-8 signature character or something. Also the
characters do not appear correctly in NS4. 


page.php:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META HTTP-EQUIV="Content-Language" content="ja">
</head>
<body>Home:<br>
<?php
include("lng_page_ja.php"); 

echo "home in japanese:"; 
echo "<br><br>$home"; 

?> 
</body>
</html>

I then have an include file with the Japanese text assigned to the
variable $home.

lng_page_ja.php:
<?php
$home = "&atilde;&#402;&#8250;&atilde;&#402;&frac14;&atilde;&#402;"; 

?> 


Jean-Christian Imbeault wrote:

> Dennis Browne wrote:
> >
> > $home = "$B%[!<(B?";

> That didn't come out right in the email. Are you sure you saved your
> file in UTF-8 format?

> > Why?

> Is your browser detecting that the page is in UTF-8? Manually set you
> browser's page encoding to UTF-8 and see if that makes a difference?

> What browser are you using?

> Jean-Christian Imbeault



-- 
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.