Japanese not showing properly (99% right 1%garbled)
Posted 18 years 7 months ago
Good day,
we bought one of your templates and are having problems with it. Our site is in Japanese. In some places, the text does not show as it should. We didn't have this trouble when using Arthur Konze's AkoBluePortal theme, so my ideas lies somewhere in the template. The only change we did to the template was add stats counters (JoomlaStats)
you'll see a portion that says ??? rather than the kanji. We checked the database, and it appears as it should... it also appears as it should in the admin section.
To see if it was an encoding issue, I manually set the meta tag to utf8 rather than pulling it from php handler. This had no affect.
Any insight you have onthis would be very helpful.
Re: Japanese not showing properly (99% right 1%garbled)
Posted 18 years 7 months ago
Hmm.. i'm not really sure what that could be.. there's not much aside from the encoding in the header that would affect the output of characters. have you compared the outputed html for both the template that works and the one that doesn't to see if there are any obvious differences with encoding or xml types in the <head>?
Re: Japanese not showing properly (99% right 1%garbled)
Posted 18 years 7 months ago
Yeah... I thought it was just encodings too... below are the two head sections for reference. The only thing I haven't tried with the head section so far is to make doctype the same as the back-end (although not sure how that would affect anything).
Another odd issue is for mailto: links. (this could possibly be related???) the problem with the mail to links, is that when written in Japanese, I get javascript in the link... whereas if I use english for mailto I get the address just fine.
eg: <a href="This email address is being protected from spambots. You need JavaScript enabled to view it.">テスト</a> produces <JAVASCRIPT laskdfjflkasd This email address is being protected from spambots. You need JavaScript enabled to view it. askhoweilajsd
<a href="This email address is being protected from spambots. You need JavaScript enabled to view it.">test</a> products This email address is being protected from spambots. You need JavaScript enabled to view it.
I wonder if the two are related... something not parsing the japanese text correctly?
Re: Japanese not showing properly (99% right 1%garbled)
Posted 18 years 7 months ago
for arguement-sake, I did just that and the site messed up. The database itself is UTF8 (which would explain that) [or at least as close to UTF8 as MySQL4.0 gets].
Re: Japanese not showing properly (99% right 1%garbled)
Posted 18 years 7 months ago
I'm beginning to think that it isn't a template issue, but rather one of the modules/components/mambots responsible for parsing the database. I think this, because I just upgraded a site and I got the same issue with the mailto: function. So, assumming that the two problems are related, which I would assume they are, then the fault is in the parsing somewhere outside of the template. none the less, I will keep hunting things down and post the culprit once I find it.
Cheers to Franck and Andy for lending a hand and to RocketTheme for the wonderful looking templates! Already receiving positive comments regarding look and layout.