
04-12-06, 06:48 AM
|
|
Newbie Coder
|
|
Join Date: Apr 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Help me
hey i have problem with php can any one help me!
how do i write arabic text through php in a txt file,,file
|

04-12-06, 08:06 AM
|
 |
Community VIP
|
|
Join Date: Aug 2003
Posts: 430
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
|

04-12-06, 11:57 PM
|
|
Newbie Coder
|
|
Join Date: Apr 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
 its a flash chat room , mate !! all i need to write in UTF-8 encoding ,, i need php file for save data as utf-8 encding !! 
|

04-13-06, 01:54 AM
|
 |
Community VIP
|
|
Join Date: Oct 2005
Location: Denver, Co. USA
Posts: 2,674
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
If you have a string containing the utf-8 encoded aribic, the normal file functions will write it and read it -
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???
|

04-13-06, 02:10 AM
|
 |
Community VIP
|
|
Join Date: Oct 2005
Location: Denver, Co. USA
Posts: 2,674
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Here is an updated version of the above that outputs an utf-8 header and wraps the text with the proper language info -
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???
|

04-13-06, 03:16 AM
|
|
Newbie Coder
|
|
Join Date: Apr 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
thankx for da reply !!! just have a look at my chat room !!
My Chat Room
its english version is working fine,, all i need is ,, if i type smthin in Arabic it should go through the php in to txt file .. and display in da arabic too ,,
|

04-13-06, 10:24 AM
|
 |
Community VIP
|
|
Join Date: Oct 2005
Location: Denver, Co. USA
Posts: 2,674
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
To obtain help, you need to describe what the problem is, post the code that is responsible for performing the function in question, provide examples, and telling what you have already tried would not hurt either. Also provide information about what symptoms you have observed (in your case how do you know it is not writing the utf-8 text to a file?) Is it not displaying the text correctly when it is posted? If so, see the next paragraph.
The link you provided goes to blank page, which does not help except that it has this header -
If this is the same header used on pages trying to display utf-8 encoded text, it will probably cause it to be displayed as the utf-8 encoded string and not as the proper text.
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???
|

04-15-06, 01:26 AM
|
|
Newbie Coder
|
|
Join Date: Apr 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Im Extremly sorry mate  ,,, im not that much gud in php and im new to the forum also pls do mind all my mistakes ..
and again im sayin sorry that cos I hav given the wrong link too ,,, its goes to clear.php.. here is the link just hav a look
my chat room
here with attached my php file for post n display , i hope u will help me ,,
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|