hi..
i'm a new beginner. i'm using post nuke CMS 0.726 version. My webpage has multilangual that are English, Arabic and Malay. But, one day i checked the arabic word had change to strange code.
Did anybody knows why the arabic word change to code? Please tell me. Currently i'm using charset=windows-1256
I've try change the charset to UTF-8 but still doesn't work.
i need help from u
thank you..
edited by: thuraya, Oct 11, 2006 - 08:36 AM
Login
Donate to Zikula
Installation, Configuration, & Upgrades
::
arabic word change to strange code
-
-
you should use PN version .762, for starters
thuraya
i'm using post nuke CMS 0.726 version.
Do you have a link or screenshot?
--
David Pahl
Zikula Support Team -
First, upgrade, and second check your charset actually changed in the HTML source.
--
Regards,
Simon
itbegins.co.uk - Zikula Consulting
Please read the Support Guide -
Charsets:
For arabic: ISO-8859-6
For malay: x-iscii-ma
For english (western alphabet): ISO-8859-1
--
-
gerkynet
Charsets:
For arabic: ISO-8859-6
For malay: x-iscii-ma
For english (western alphabet): ISO-8859-1
That idea is nice, but for multilingual sites it's useless. The deferences between language charsets messes up input by users that's inputted under charset 1, and viewed by charset 2.
Lets say I have a language that's using UTF-8, and a user regs: Sú¶é®¶á¶á, when he posts something, using UTF-8, and is read by someone using ISO-8859-1, it shows up like: Sú¶é®¶á¶á
Lets say this user regs when the charset is ISO-8859-1: Sú¶é®¶á¶á, now when he posts something using ISO-8859-1, and is read by someone using UTF-8, it shows up like: S????????
For multilingual sites, there should be 1 charset used, because there are issues when things are posted by another chatset then a user is using, defined in the core.php from the language pack.
Other applications that I've tested (Wordpress, e107, drupal & Xaraya) don't have these issues, because the charset is defined as UTF-8.
English and Arabic do just fine in UTF-8. Malay I don't know, but would probably would work. Just need to convert all language packs used to UTF-8, and change de charset define in core.php from each language, and fire away.
edited by: ZarToXidE, Oct 11, 2006 - 05:07 PM
--
Doe Maar Freak -
Yes, you are right,
I'm only mentioned the charsets, I didn't talk about, as you can see in my post.
--
-
Quote
English and Arabic do just fine in UTF-8. Malay I don't know, but would probably would work. Just need to convert all language packs used to UTF-8, and change de charset define in core.php from each language, and fire away.
That's the best solution for multilanguage sites, yes. UTF-8 is the most reliable charset in this circumstance.
--
Regards,
Simon
itbegins.co.uk - Zikula Consulting
Please read the Support Guide -
HammerHead
[..]
That's the best solution for multilanguage sites, yes. UTF-8 is the most reliable charset in this circumstance.
If UTF-8 works on all languages, then I'm wondering why it's still defined in the language files. When not using multilingual there's no problem. But since the option is there, I think it should be working too.
--
Doe Maar Freak -
We have talked briefly on the developer list about converting the language pack to UTF-8, but this is part of the languages review that will happen post .8
--
Regards,
Simon
itbegins.co.uk - Zikula Consulting
Please read the Support Guide -
Quote
Do you have a link or screenshot?
the problem site with strange code:
http://infad.kuim.edu.my/?newlang=ara
thank you -
I copied the source of the arabic page, and put it on my site. Loads with perfectly in arabic.
.
The only difference I see when loading both pages, it the first reply send by the server:
On your server it replies:
Code
HTTP/1.x 200 OK
date: Mon, 30 Oct 2006 07:39:06 GMT
Server: Apache/2.0.40 (Red Hat Linux)
Accept-Ranges: bytes
X-Powered-By: PHP/4.2.2
Set-Cookie: POSTNUKESID=781972408c531f4ed019923254b3f2eb; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: cache
Pragma: no-cache
Transfer-Encoding: chunked
Content-Type: text/html; charset=ISO-8859-1
.
On my server it replies:
Code
HTTP/1.x 200 OK
Date: Mon, 30 Oct 2006 07:40:23 GMT
Server: Apache/1.3.33 (Win32)
X-Powered-By: PHP/4.4.2
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html
.
It looks like the server you're on is overriding the charset somehow. I doubt this is a PostNuke issue, seams more of a server issue.
--
Doe Maar Freak -
its probably something to do with your mysql, which mysql version are you using and what enocding character are used there? also, did you move/upgrade servers lately?
and by the way, I can see the site up there correctly
edited by: myths, Oct 31, 2006 - 02:30 AM
