Jump to content

php cli default encoding


alin19

Recommended Posts

hello.

I run a script that reads an email and sends forward some dates.

 

But there is a problem:

 

if i receive the sign:  £ with the encoding:  iso-8859-1

it doesn't handles alright the dates:

 

instead of "£" he sees : "=?"

 

how can i change the default encoding to a php script to utf-8?

 

i remember that there was a function that did this;

can you help me?

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/197900-php-cli-default-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.