Make sure that your charset meta-tag is BEFORE the title tag. In an
older version of cake, the default layout had the reverse (title
first) which meant that it wasn't parsed as UTF-8.

On Oct 6, 9:20 am, exo_duz <[EMAIL PROTECTED]> wrote:
> David,
>
> That's what I thought as well, but I am using Dreamweaver CS3 9.0 and
> it seems that when I open a new Document it will always be in UTF-8.
>
> On Oct 6, 5:00 pm, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote:
>
> > $this->pageTitle isn't any different in my experience.
> > Have you checked that the .php file (your controller) is certainly  
> > saved as UTF8? That depends on your text editor...
>
> > On 6 Oct 2008, at 16:03, exo_duz wrote:
>
> > > Sorry forgot to add:
>
> > > All other information is also set to UTF-8 such as the App.Encoding in
> > > core.php and also the database is set to UTF-8 in database.php.
>
> > > I am using i18n and all text from the .po files are correct, it is
> > > only when I try to pass the $this->pageTitle that the encoding do not
> > > seem to work.
>
> > > On Oct 6, 4:00 pm, exo_duz <[EMAIL PROTECTED]> wrote:
> > >> Hi David,
>
> > >> All pages contain:
>
> > >> <?php echo $html->charset('UTF-8'); ?>
> > >>    <meta http-equiv="Content-Language" content="JA" />
>
> > >> in the default layour (default.ctp).
>
> > >> On Oct 6, 3:22 pm, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote:
>
> > >>> That's simply an encoding problem.
> > >>> Is your .php file saved in UTF8?
> > >>> Are there UTF8 meta tags in the page header?
>
> > >>> Also see very recent 
> > >>> discussion:http://groups.google.com/group/cake-php/msg/8f40e1bd40182e11?hl=en
>
> > >>> On 6 Oct 2008, at 15:15, exo_duz wrote:
>
> > >>>> Hi all,
>
> > >>>> Is there a different way to do page titles when using multiple
> > >>>> languages?
>
> > >>>> I have done in the controller:
>
> > >>>> CODE
> > >>>> //read the language and redirect as needed
> > >>>> $lang = Configure::read('Config.langCode');
>
> > >>>> //en or jp
> > >>>> if ($lang == 'en')
> > >>>> {
> > >>>> $this->pageTitle = "Welcome";
> > >>>> }
> > >>>> else
> > >>>> {
> > >>>> $this->pageTitle = "ようこそ";
> > >>>> }
>
> > >>>> English is fine but when I try to do Japanese characters the only
> > >>>> things that come up is 悤
>
> > >>>> Anyone know why this is happening?
>
> > >>>> Is there a better way to do this?
>
> > >>>> As the pages changes with each page and further down the line I  
> > >>>> want
> > >>>> to add the database output to the title as well, what would be the
> > >>>> best way to achieve this?
>
> > >>>> Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to