To Anwar King - cgman forum Arabic solution

To Anwar King - cgman forum Arabic solution


05-21-2004, 02:16 AM


  » http://sudaneseonline.com/cgi-bin/sdb/2bb.cgi?seq=msg&board=8&msg=1085102165&rn=4


Post: #1
Title: To Anwar King - cgman forum Arabic solution
Author: Ahmed Elsharif
Date: 05-21-2004, 02:16 AM
Parent: #0


Anwar,

I see that Sudadev is down so I'm writing this here for you I'm sure u'll check it fast, and I'm really sorry for being late to respond.
You don't have any problem with the coding but the problem lies within the apache server settings. Look for this value in httpd.conf (within the apache folder):

AddDefaultCharset on

and set it to off like such:

AddDefaultCharset off

You can just delete the whole line but I prefer setting it to off.

The "on" value gives precedence to the default language encoding "iso-8859-1" over the http encoding "windows-1256" which is your problem right now.When some body posts in arabic the brower shifts to the default encoding and sends the data to the server as a garbage code. The garbage code already there cannot be repaired since it's already saved like that in the database. You have three options to deal with it:either get rid of it, leave it as it is or just tell the members to correct their posts after you solve the problem.

I hope this helps

with best wishes


Post: #2
Title: Re: To Anwar King - cgman forum Arabic solution
Author: Ahmed Elsharif
Date: 05-21-2004, 07:46 AM
Parent: #1

انور قمنا باللازم يا مان والعربى شغال تمام بعد العملية الجراحية والشكر للاخ مرتضى ما تنسانا فى موضوع العرس انا والاخ مرتضى والكلام برضه لسجيمان

فى الخدمة يا حبيب

http://cgman.org/forum

(العربى قاعد اكتب فيهو ساعة يامان)

Post: #3
Title: Re: To Anwar King - cgman forum Arabic solution
Author: AnwarKing
Date: 05-21-2004, 08:22 PM
Parent: #2

انور وسجيمان قمنا باللازم وطالبين اللازم

Dearest Ahmed...
taslem kateer & too many thanks to Murtada...
Well, I'm promoting You as an ideal Husband nowadays...
bs zi ma golta liik rakkiz m3ai tamam...

AnwarKing

Post: #4
Title: Re: To Anwar King - cgman forum Arabic solution
Author: Ahmed Elsharif
Date: 05-22-2004, 02:13 PM
Parent: #3



Quote: Well, I'm promoting You as an ideal Husband nowadays...
bs zi ma golta liik rakkiz m3ai tamam


mashkour ya Anwar 3la ta3bak ma3ana. wallahi murakkizeen ma3ak akhir tarkeez



Post: #5
Title: Re: To Anwar King - cgman forum Arabic solution
Author: Abdel Aati
Date: 05-22-2004, 10:41 PM

سلام انور والشباب

سوري ما كنت عايز اعلق؛
لكن ما دام الموضوع اتفتح

PHP BB عندو خدمة اللغة العربية من مجاميعو
يعني اتجاه الكتابة وتشفير اللغة الاساسية الخ
ارجاء انزال هذا الملف؛ ولعدين رفعه الي السيرفر في ملف اللغات
http://prdownloads.sourceforge.net/phpbb/lang_arabic.zip
وبعدها اختيار لغة المنتدي الاساسية العربية من بايل الادارة للادمين الرئيسي .

عادل

Post: #6
Title: Re: To Anwar King - cgman forum Arabic solution
Author: Ahmed Elsharif
Date: 05-23-2004, 05:05 PM
Parent: #5


Quote: عندو خدمة اللغة العربية من مجاميعو
يعني اتجاه الكتابة وتشفير اللغة الاساسية الخ
ارجاء انزال هذا الملف؛ ولعدين رفعه الي السيرفر في ملف اللغات

The problem was not with arabic language support in phpbb. They already have that enabled. Their problem was with the apache server as I said earlier. Their server was set to send US english encoding in the header and this overrides any arabic setting in phpbb. The header sent by the server overrides any http header. Try it in you local server just add the line I provided above in httpd.conf in the "Apache/conf" folder for windows or "etc/httpd/conf/" folder for Lunix and you will see your site does not support arabic encoding any more. What I did is to change the value above and then restart the server remotely, and this solved the problem

The template they had did not support the arabic patch provided by phpbb because the creator just stripped all that functionality so I just enabled some of that again from inside the template. In fact I redesigned the whole template system again to give it more appeal. However phpbb support arabic even without the patch.

If sudadev is up you could have followed some or our discussion over this matter but I think it's still down However here is the link http://sudadev.net/forum/

with best wishes