Jump to content

fwrite - utf8 - xml


Perfidus

Recommended Posts

Hi there, I'm writing an rss file to my server with this function:

fwrite($handle, utf8_encode($somecontent))

$somecontent includes some text manually introduced and some pieces that come from a database:

$somecontent = "Text with spanish tilde á".$databaserow['moretext'];

Why the manually introduced text doesn't look utf8 encoded?

What I'm doing wrong?

 

Thanks for your help!

Link to comment
https://forums.phpfreaks.com/topic/185516-fwrite-utf8-xml/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.