David, Thanks for that. Works just fine now. You're right Dreamweaver has an issue with hiding the information even though it is set under Edit >> Preferences to create documents in UTF-8. For some sort of reason it changes the Encoding to SHIFT_JIS still, but after manually changing the PHP files to UTF-8 and uploading it again it seems to work fine.
Thanks again for everyone's help. I still say it's the file encoding of your .php file(s). Double check it in another editor that clearly shows the encoding. Dreamweaver in my experience tends to hide it (no idea about CS3 though). I'd say BBEdit or TextMate on OS X, can't help with Win/Lin. 宜しく, Dav On Oct 6, 11:06 pm, exo_duz <[EMAIL PROTECTED]> wrote: > sdozono: > > The following head tag was taken from docomo.jp: > <html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> > > The following head tag was taken from softbank.jp > <html lang="ja" xml:lang="ja" xmlns="http://www.w3.org/1999/xhtml"> > <head> > <meta http-equiv="content-type" content="text/html; > charset=Shift_JIS" /> > > Maybe I have to set the language in the HTML tags as well. > > Might try it tomorrow and see what happens. > > On Oct 6, 10:57 pm, exo_duz <[EMAIL PROTECTED]> wrote: > > > sdozono: > > > That's interesting. I have created several websites in Japanese but I > > always use UTF-8 and it comes out all right. > > > I just have to make sure that the <head> tags contain: > > > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> > > <meta http-equiv="Content-Language" content="JA" /> > > > I had trouble before with garbage characteds in UTF-8 if I don't set > > the Content-Language tags. But after I set the Content-Language tag > > everythiing seems to work fine. > > > I will try using SHIFT_JIS tomorrow and see what happens. > > > Thanks everyone for your help. > > > On Oct 6, 9:39 pm, sdozono <[EMAIL PROTECTED]> wrote: > > > > hello from Japan. > > > I tested this case at my Japanese environment. > > > > I saved your text in a text file with Shift-JIS format. (Japanese > > > Windows common charset) > > > After I opened the file in "UTF-8" charset, I got the same kind a > > > garbage character. > > > > Hope that helps. > > > > *Original and saved in Shift-JIS format.* > > > オーストラリア大使館のカルチャーセンター - ようこそ > > > > *Opened the file in UTF-8* > > > I[XgAgق̃J`[Z^[ - 悤 > > > > *Opened the file in UTF-7* > > > ƒI [ƒXƒgƒ‰ƒŠƒA‘åŽgŠÙ‚̃Jƒ‹ƒ`ƒƒ [ƒZƒ“ƒ^ [ - ‚悤‚±‚» > > > > *Opened the file in EUC* > > > オーストラリア代.g茅"磨Jルチャーセンター - ゅ€・・ > > > > Shun Dozono @ cakephp.jp > > > > exo_duz のメッセージ: > > > > > In the title string the front bit before "-" is from po file and the > > > > end bit which is the problematic area is the one from $this- > > > > >pageTitle: > > > > > <title> ` ȥ ꥢ ʹ ^ Υ e ` ` - </title> > > > > > This is the broken characters " ", it is supposed to say 褦 . > > > > > Somehow from all these problems I figure that CakePHP hasn't got > > > > Internationalization quite figured out yet IMO. > > > > > On Oct 6, 8:24 pm, exo_duz <[EMAIL PROTECTED]> wrote: > > > > > Yeah to my knowledge it shouldn't make a diff but this issue is really > > > > > baffling me. > > > > > > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" / > > > > > > > <meta http-equiv="Content-Language" content="JA" /> > > > > > > <meta name='description' content="Welcome to the Australian > > > > > Government in Japan's web site dedicated to Australian arts in Japan > > > > > and Australia-Japan artistic collaboration. Whether you are an artist > > > > > or fan, you will find plenty of information about upcoming events in > > > > > Japan, e-newsletters and useful links." /> > > > > > <meta name='keywords' content='Arts, Culture, Australia, Australia > > > > > Web, Australian, Sydney, Perth, Melbourne, Brisbane, Cairns, Adelaide, > > > > > Hobart, Darwin, Canberra' /> > > > > > <meta name='author' content='Robin Roy Julius' /> > > > > > <meta name='copyright' content='Australian Embassy Tokyo' /> > > > > > > <title> ` ȥ ꥢ ʹ ^ Υ e ` ` - </title> > > > > > > That is the HTML source from Firefox 3. > > > > > > This issue is really baffling me as to why it is happening. I have > > > > > tested it out on Firefox, IE, Chrome and Safari on Windows and Firefox > > > > > and Safari on OSX and it is still happening. > > > > > > On Oct 6, 7:41 pm, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote: > > > > > > > On 6 Oct 2008, at 17:47, grigri wrote: > > > > > > > > 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. > > > > > > > This shouldn't be the case. > > > > > > An HTML document is not evaluated by the browser line-by-line in the > > > > > > same way PHP is. At least no modern browser should do that (do I > > > > > > need > > > > > > to look in your direction IE?). A quick test on OS X Safari confirms > > > > > > that it makes no difference where the UTF8 tag is, only that it > > > > > > needs > > > > > > to be somewhere in the header. > > > > > > > If it does make a difference in other browsers, please let me know > > > > > > (honest request). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
