Email appearing funny characters

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
baby_teeth
Forum Newbie
Posts: 2
Joined: Fri Dec 26, 2008 8:23 am

Email appearing funny characters

Post by baby_teeth »

Hi,

I am coding a sending email function. I am able to trigger the html email.
However, the email's content appear to have funny characters inside.
I have echo the content of the email, check the data, trim the value of the content email and change the html email to be in text format email but still it appear funny characters. This funny characters appears to be "!" and space and only appear in certain record.

Anyone encounter the same issue?
Kindly advise.

Thanks.
icesolid
Forum Regular
Posts: 502
Joined: Mon May 06, 2002 9:36 pm
Location: Buffalo, NY

Re: Email appearing funny characters

Post by icesolid »

Are you sure your encodings match up. Is the content in your e-mail body being submitted in UTF-8 but your e-mail is being encoded in ISO-8859-1?

PHP default is ISO-8859-1, if the page your e-mail is being submitted from is UTF-8, you will see funny characters in the e-mail.
baby_teeth
Forum Newbie
Posts: 2
Joined: Fri Dec 26, 2008 8:23 am

Re: Email appearing funny characters

Post by baby_teeth »

Hi,

Thanks for the reply. I didnt set any encodings in it.
How should I overcome this issue?
icesolid
Forum Regular
Posts: 502
Joined: Mon May 06, 2002 9:36 pm
Location: Buffalo, NY

Re: Email appearing funny characters

Post by icesolid »

Post the funny character e-mail content in this thread so we can see, maybe even your code would help.

Sounds like an encoding problem to me.
Post Reply