Re: [PHP] fwrite() seems to destroy Special Characters

2004-11-18 Thread Marek Kilimajer
Dennis Lahay wrote: I'm having trouble with writing special charcaters to a text file. The characters are your run-of-the-mill accented characters. Passing them back and forth in the database and displaying them on screen is NOT a problem. code snippet: $row = mysql_fetch_array($query_result,

Re: [PHP] fwrite() seems to destroy Special Characters

2004-11-18 Thread Dennis Lahay
The file doesn't exist, so I need to create it first. So I did this: $filename = ../../../Volumes/FILEJOB/ . $row['currentSVVersion']; if (!$file = fopen($filename, 'w+')) { print Cannot open file ($filename); exit; } fclose($file); Then I wrote to it using your suggestion: if (!$file =

Re: [PHP] fwrite() seems to destroy Special Characters

2004-11-18 Thread Dennis Lahay
Ah, if were only that simple but, alas, it is not. I have opened other documents that contain these special characters and BBEdit has displayed them properly. On Nov 18, 2004, at 8:23 AM, Marek Kilimajer wrote: You are not loosing them, only bbedit does not display them in the original

Re: [PHP] fwrite() seems to destroy Special Characters

2004-11-18 Thread Marek Kilimajer
Dennis Lahay wrote: Ah, if were only that simple but, alas, it is not. I have opened other documents that contain these special characters and BBEdit has displayed them properly. Are you using the same charset for both? What is the original source of the data? html form? then they are in the

Re: [PHP] fwrite() seems to destroy Special Characters

2004-11-18 Thread Jason Wong
On Thursday 18 November 2004 23:46, Dennis Lahay wrote: Ah, if were only that simple but, alas, it is not. I have opened other documents that contain these special characters and BBEdit has displayed them properly. After creating the file, use PHP to read it back and display its contents. --

[PHP] fwrite() seems to destroy Special Characters

2004-11-17 Thread Dennis Lahay
I'm having trouble with writing special charcaters to a text file. The characters are your run-of-the-mill accented characters. Passing them back and forth in the database and displaying them on screen is NOT a problem. code snippet: $row = mysql_fetch_array($query_result, MYSQL_ASSOC);