Re: utf-8 encoding : problem with japanese

From: Date: Fri, 20 Jun 2003 16:39:13 +0000
Subject: Re: utf-8 encoding : problem with japanese
References: 1  Groups: php.i18n 
Request: Send a blank email to php-i18n+get-578@lists.php.net to get a copy of this message
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 <donal_regan10@yahoo.co.uk> 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

« previous php.i18n (#578) next »