Re: utf-8 encoding : problem with japanese

Moriyoshi Koizumi <[email protected]>
Newsgroups gmane.comp.php.internationalization
Message-ID <[email protected]>
I guess the issue could be solved by setting default_charset=UTF-8 in 
php.ini, or putting the following line

<?php header('Content-Type: text/html; charset=UTF-8');  ?>

at the top of yourscript script.

Hope this helps.

Moriyoshi

Donal Regan <[email protected]> wrote:

> Hello,
> I'm trying to display some japanese characters in a
> web page but I'm getting rubbish until I change the
> encoding setting in options in the browser to utf-8.
> 
> The japanese strings are read from an xml file, I have
> 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> as the first line. I create my xml parser using 
> 
> $xmlParser=xml_parser_create("UTF-8");
> 
> and in my html header I have 
> <meta http-equiv="content-type"
> content="text/html;charset=UTF-8">. Is there something
> i'm missing? Any help would be greatly appreciated.
> Cheers, 
> Donal


-- 
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.