moh_sulaiman Posted June 3, 2008 Share Posted June 3, 2008 Funny characters appear in email received <Â> or < Â Â > they appear where a tab charactor is used i think. Need urgent help Quote Link to comment https://forums.phpfreaks.com/topic/108500-solved-funny-characters-appear-in-email-received-lt%C3%A2gt-or-lt-%C3%A2-%C3%A2-gt/ Share on other sites More sharing options...
zq29 Posted June 3, 2008 Share Posted June 3, 2008 So, you come to a PHP forum to ask about an e-mail you received? Quote Link to comment https://forums.phpfreaks.com/topic/108500-solved-funny-characters-appear-in-email-received-lt%C3%A2gt-or-lt-%C3%A2-%C3%A2-gt/#findComment-556338 Share on other sites More sharing options...
moh_sulaiman Posted June 3, 2008 Author Share Posted June 3, 2008 no actualy i have an email script when email recieved that contain these charctors they are basically &nbs; which are shown as  which are because when you view them in envoirment where they are not supported.what should i do with them so that i dont have this  Quote Link to comment https://forums.phpfreaks.com/topic/108500-solved-funny-characters-appear-in-email-received-lt%C3%A2gt-or-lt-%C3%A2-%C3%A2-gt/#findComment-556580 Share on other sites More sharing options...
effigy Posted June 3, 2008 Share Posted June 3, 2008 That's a NO-BREAK SPACE in UTF-8. Quote Link to comment https://forums.phpfreaks.com/topic/108500-solved-funny-characters-appear-in-email-received-lt%C3%A2gt-or-lt-%C3%A2-%C3%A2-gt/#findComment-556585 Share on other sites More sharing options...
moh_sulaiman Posted June 3, 2008 Author Share Posted June 3, 2008 thanks for the reply i just dont want user to see  when he view his mail Quote Link to comment https://forums.phpfreaks.com/topic/108500-solved-funny-characters-appear-in-email-received-lt%C3%A2gt-or-lt-%C3%A2-%C3%A2-gt/#findComment-556692 Share on other sites More sharing options...
effigy Posted June 3, 2008 Share Posted June 3, 2008 You need to make sure your encodings are in agreement. How is the data stored? Retrieved? Sent? Received? Are you sending encoding or character set information with the e-mail? Do you see the same if you send it to yourself? Quote Link to comment https://forums.phpfreaks.com/topic/108500-solved-funny-characters-appear-in-email-received-lt%C3%A2gt-or-lt-%C3%A2-%C3%A2-gt/#findComment-556706 Share on other sites More sharing options...
moh_sulaiman Posted June 3, 2008 Author Share Posted June 3, 2008 when i check it in db it is ok i mean a white space but when the reciever checks his mail it is there also when i generated sql dump file these charactors are there like : To:</font>Â Â Â Â Â Â abc@yahoo.com<br>\r\n Quote Link to comment https://forums.phpfreaks.com/topic/108500-solved-funny-characters-appear-in-email-received-lt%C3%A2gt-or-lt-%C3%A2-%C3%A2-gt/#findComment-556722 Share on other sites More sharing options...
moh_sulaiman Posted June 3, 2008 Author Share Posted June 3, 2008 and in same dump file : CC:</FONT> None<BR><FONT color=blue>Subject:</FONT> test this  charactor do not apear when i edit row through phpmyadmin then it apears as white space Quote Link to comment https://forums.phpfreaks.com/topic/108500-solved-funny-characters-appear-in-email-received-lt%C3%A2gt-or-lt-%C3%A2-%C3%A2-gt/#findComment-556723 Share on other sites More sharing options...
Daniel0 Posted June 3, 2008 Share Posted June 3, 2008 As effigy said, what charset do you use when storing the data in the database? Quote Link to comment https://forums.phpfreaks.com/topic/108500-solved-funny-characters-appear-in-email-received-lt%C3%A2gt-or-lt-%C3%A2-%C3%A2-gt/#findComment-556732 Share on other sites More sharing options...
moh_sulaiman Posted June 4, 2008 Author Share Posted June 4, 2008 thanks for reply . for that i use longtext. Quote Link to comment https://forums.phpfreaks.com/topic/108500-solved-funny-characters-appear-in-email-received-lt%C3%A2gt-or-lt-%C3%A2-%C3%A2-gt/#findComment-557133 Share on other sites More sharing options...
effigy Posted June 4, 2008 Share Posted June 4, 2008 LONGTEXT is a data type, not an encoding. What database are you using? Quote Link to comment https://forums.phpfreaks.com/topic/108500-solved-funny-characters-appear-in-email-received-lt%C3%A2gt-or-lt-%C3%A2-%C3%A2-gt/#findComment-557400 Share on other sites More sharing options...
moh_sulaiman Posted June 4, 2008 Author Share Posted June 4, 2008 oohh usf-8 in db(mysql) and iso-8859-1 in page Quote Link to comment https://forums.phpfreaks.com/topic/108500-solved-funny-characters-appear-in-email-received-lt%C3%A2gt-or-lt-%C3%A2-%C3%A2-gt/#findComment-557527 Share on other sites More sharing options...
effigy Posted June 4, 2008 Share Posted June 4, 2008 By page do you mean e-mail? How about sending a Content-type header with the mail? See example 4, replacing iso-8859-1 with UTF-8. Quote Link to comment https://forums.phpfreaks.com/topic/108500-solved-funny-characters-appear-in-email-received-lt%C3%A2gt-or-lt-%C3%A2-%C3%A2-gt/#findComment-557537 Share on other sites More sharing options...
moh_sulaiman Posted June 4, 2008 Author Share Posted June 4, 2008 yes page mean email and you mean replace charset=iso-8859-1 by utf-8 will it work any other alternative because there are lot of them Quote Link to comment https://forums.phpfreaks.com/topic/108500-solved-funny-characters-appear-in-email-received-lt%C3%A2gt-or-lt-%C3%A2-%C3%A2-gt/#findComment-557611 Share on other sites More sharing options...
effigy Posted June 4, 2008 Share Posted June 4, 2008 Lots of what? Programs using redundant mailing code? Either instruct the e-mail of the character set/encoding, or convert the content to iso-8859-1. Quote Link to comment https://forums.phpfreaks.com/topic/108500-solved-funny-characters-appear-in-email-received-lt%C3%A2gt-or-lt-%C3%A2-%C3%A2-gt/#findComment-557616 Share on other sites More sharing options...
moh_sulaiman Posted June 4, 2008 Author Share Posted June 4, 2008 lots of iso-8859-1 it is system which provide support thourgh email sample : $headers = "From: ".ADMIN_NAME." < ".ADMIN_EMAIL." > \n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $agentemail = $_POST['iu-'.TABLE_CRM_AGENT.'-email-1-3']; $password = $_POST['iu-'.TABLE_CRM_AGENT.'-apassword-1-5']; $fp=fopen("mail_format/agent_welcome_mail.txt","r"); $fcontent=fread($fp,filesize("mail_format/agent_welcome_mail.txt")); fclose($fp); $message=str_replace("{AGNAME}",$_POST['iu-'.TABLE_CRM_AGENT.'-ausername-1-5'],$fcontent); $message=str_replace("{AGPASS}",$password,$message); Quote Link to comment https://forums.phpfreaks.com/topic/108500-solved-funny-characters-appear-in-email-received-lt%C3%A2gt-or-lt-%C3%A2-%C3%A2-gt/#findComment-557624 Share on other sites More sharing options...
effigy Posted June 4, 2008 Share Posted June 4, 2008 So you're not always pulling from a UTF-8 source? It's mixed? Quote Link to comment https://forums.phpfreaks.com/topic/108500-solved-funny-characters-appear-in-email-received-lt%C3%A2gt-or-lt-%C3%A2-%C3%A2-gt/#findComment-557688 Share on other sites More sharing options...
moh_sulaiman Posted June 5, 2008 Author Share Posted June 5, 2008 Yes in db it is utf-8 but when it come to display it is iso-8859-1 .will it be ok that i make all to utf-8 the unwanted charactor is bassically which is displayed as  . Quote Link to comment https://forums.phpfreaks.com/topic/108500-solved-funny-characters-appear-in-email-received-lt%C3%A2gt-or-lt-%C3%A2-%C3%A2-gt/#findComment-558054 Share on other sites More sharing options...
effigy Posted June 5, 2008 Share Posted June 5, 2008 Did you try adding the Content-type header? If your database is in UTF-8, I would keep the data that way. Quote Link to comment https://forums.phpfreaks.com/topic/108500-solved-funny-characters-appear-in-email-received-lt%C3%A2gt-or-lt-%C3%A2-%C3%A2-gt/#findComment-558271 Share on other sites More sharing options...
moh_sulaiman Posted June 9, 2008 Author Share Posted June 9, 2008 u have them as well see title of thread Quote Link to comment https://forums.phpfreaks.com/topic/108500-solved-funny-characters-appear-in-email-received-lt%C3%A2gt-or-lt-%C3%A2-%C3%A2-gt/#findComment-560985 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.