[PHP-DB] unicode in php{PLS HELP URGENT}
hello, ive saved a text file-note.txt with unicode encoding, and would like to print the file, how could i do so?? ive written the following piece of code, pls tell me where ive gone wrong. ?php $filename=note.txt; $fp = fopen ($filename,r); $str=utf8_encode(file($filename)); echo $str[0]; ? - Do you Yahoo!? New DSL Internet Access from SBC Yahoo!
[PHP-DB] unicode in php
hi, thanks for the code, but i had tried it but got a fatal error: call to undefined function utf8_encode(). i saved my text file as unicode encoding..going thro the php.net site though...pls help if any ideas. thanks alot for the help. also am i sposed to encode or decode, as the text file is alreday saved as unicode encoding in notepadi was pondering over hat for a while. pls help. roslyn - Do you Yahoo!? New DSL Internet Access from SBC Yahoo!
Re: [PHP-DB] unicode in php{PLS HELP URGENT}
hi, ive been going thro the site aand also tried out the code, but im getting fatal error: call to undefined function utf8_encode(). pls help roslyn Dave Smith wrote:$filename=note.txt; //$fp = fopen ($filename,r); $str=utf8_encode(file($filename)); foreach( $str as $line ) echo $line; ? I got all of this code right from www.php.net. You should spend some time there. It is the best doc site I've ever seen for any programming language. --Dave roslyn jose wrote: hello, ive saved a text file-note.txt with unicode encoding, and would like to print the file, how could i do so?? ive written the following piece of code, pls tell me where ive gone wrong. $filename=note.txt; $fp = fopen ($filename,r); $str=utf8_encode(file($filename)); echo $str[0]; ? - Do you Yahoo!? New DSL Internet Access from SBC Yahoo! - Do you Yahoo!? New DSL Internet Access from SBC Yahoo!