ed
Member
Registered: 10th Sep 03
User status: Offline
|
When sending an e-mail through my mail script I recently wrote I have noticed that some of the characters don't come up correctly. For example the £ symbol comes up as a ? . Does anyone know of a way around this. I am already using strip_slashes() to sort out the \ thing PHP does the arguments sent to mail(), but is there another thing needed to sort this problem?
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Offline
|
Something to do with the character sets, try chr function, £ sign being 163.
http://uk2.php.net/chr
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
The problem is this is a script which the user types in a message into a form and it e-mails that message to the whole group using send(). I guess I could write a script that used that function though. If they were set messages then it would be easier...
|
AndyKent
Member
Registered: 3rd Sep 05
User status: Offline
|
IIRC, search google for 'htmlentites' - should convert problem characters to their HTML version (ie. £ to £ )
|
MikeLamb
Member
Registered: 23rd Sep 03
Location: Crowthorne Drives: Veccy SRI
User status: Offline
|
you need to add something like "text/plain; charset=iso-8859-1" to the content-type header
|