Jump to content

Euro Symbol Encoding


fohanlon

Recommended Posts

Hi

 

I am reading the contents of a file into a variable as follows: file_get_contents($pathtofile);

 

If the file contains say just 3 € (euro) symbols as an example and I output the strlen I get 9 instead of 3.

 

Could anyone tell me how I could sort of the contents (the 3 euro symbols) so I can get strlen as 3.  I tried utf8_decode etc.

 

Many Thanks

 

Fergal.

 

 

Link to comment
https://forums.phpfreaks.com/topic/247987-euro-symbol-encoding/
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.