monika Posted August 18, 2007 Share Posted August 18, 2007 Do any1 have any idea about this weired character  well every time i save my webpage and browse this  is displayed at top.. but when i chk in notepad or any editor i dont see/find such character..  cos of this i get header error.. [header already sent......] Quote Link to comment https://forums.phpfreaks.com/topic/65536-%C3%AF%C2%BB%C2%BF-character-problem-in-php-page/ Share on other sites More sharing options...
phpknight Posted August 18, 2007 Share Posted August 18, 2007 Somebody had this problem a few months back. I think he got rid of it by making a new file and doing a copy/paste on the code into a new, renamed file. Let me know if that works. If not, I'll try to track it down. Quote Link to comment https://forums.phpfreaks.com/topic/65536-%C3%AF%C2%BB%C2%BF-character-problem-in-php-page/#findComment-327252 Share on other sites More sharing options...
monika Posted August 18, 2007 Author Share Posted August 18, 2007 tht works... i alos do same way... but i'd 500 files.. n using that method for that 500 files.. gos... i can't imagine.. is their any other way... can't i stop that charcater.. Quote Link to comment https://forums.phpfreaks.com/topic/65536-%C3%AF%C2%BB%C2%BF-character-problem-in-php-page/#findComment-327253 Share on other sites More sharing options...
phpknight Posted August 18, 2007 Share Posted August 18, 2007 I am not exactly sure. Hopefully somebody else will be able to help on that one. Quote Link to comment https://forums.phpfreaks.com/topic/65536-%C3%AF%C2%BB%C2%BF-character-problem-in-php-page/#findComment-327260 Share on other sites More sharing options...
cooldude832 Posted August 18, 2007 Share Posted August 18, 2007 generally its a result of a 2 fold issue. 1 you have whitespace in your prologue of your file (i.e you start the php <?php session_start();?> <doc type> if you have any spacing it will phrase that which means it doesn't know what to do with it. The best way to clean it up is in the doc flow try echoing out stuff around it to figure out what is causing it (i.e if its in an include) and play around with it till it disappears. Also some text editors like to pad your documents and depending on what version of php you have that padding will cause that ugly error. Quote Link to comment https://forums.phpfreaks.com/topic/65536-%C3%AF%C2%BB%C2%BF-character-problem-in-php-page/#findComment-327270 Share on other sites More sharing options...
monika Posted August 18, 2007 Author Share Posted August 18, 2007 error is not a problme..i can handle.. it.. but i dont want that nasty character dispalyed in my every page..even in html. page.. Quote Link to comment https://forums.phpfreaks.com/topic/65536-%C3%AF%C2%BB%C2%BF-character-problem-in-php-page/#findComment-327284 Share on other sites More sharing options...
cooldude832 Posted August 18, 2007 Share Posted August 18, 2007 its a php phrasing issue so a page without any php on it (it can not have <?php and ?> ) will never have that error. If it does look there for your errors Quote Link to comment https://forums.phpfreaks.com/topic/65536-%C3%AF%C2%BB%C2%BF-character-problem-in-php-page/#findComment-327286 Share on other sites More sharing options...
monika Posted August 18, 2007 Author Share Posted August 18, 2007 its a php phrasing issue so a page without any php on it (it can not have <?php and ?> ) will never have that error. If it does look there for your errors well in none php page also that character is seen... Quote Link to comment https://forums.phpfreaks.com/topic/65536-%C3%AF%C2%BB%C2%BF-character-problem-in-php-page/#findComment-327289 Share on other sites More sharing options...
cooldude832 Posted August 18, 2007 Share Posted August 18, 2007 You must be mistaken because it only happens on a page with the php opener. And if its not a php problem why are you posting in a php board? Quote Link to comment https://forums.phpfreaks.com/topic/65536-%C3%AF%C2%BB%C2%BF-character-problem-in-php-page/#findComment-327291 Share on other sites More sharing options...
monika Posted August 18, 2007 Author Share Posted August 18, 2007 heeh... well I'm mistaken.. its only in php page.. well is there any help.. you said it may be due to blank space.. I'd removed all the blank space.. all the code are tight packed.. but still that weired character comes with smiling face.. n makes my face angry... Quote Link to comment https://forums.phpfreaks.com/topic/65536-%C3%AF%C2%BB%C2%BF-character-problem-in-php-page/#findComment-327593 Share on other sites More sharing options...
Azu Posted August 18, 2007 Share Posted August 18, 2007 Copy the first 20 characters in one of the bugged PHP files and post it here. Quote Link to comment https://forums.phpfreaks.com/topic/65536-%C3%AF%C2%BB%C2%BF-character-problem-in-php-page/#findComment-327607 Share on other sites More sharing options...
monika Posted August 18, 2007 Author Share Posted August 18, 2007 here u'll not see that character but it is their cos that character is making header error [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/65536-%C3%AF%C2%BB%C2%BF-character-problem-in-php-page/#findComment-327629 Share on other sites More sharing options...
monika Posted August 18, 2007 Author Share Posted August 18, 2007 chk this in your mozilla firefox browser u can see that character... [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/65536-%C3%AF%C2%BB%C2%BF-character-problem-in-php-page/#findComment-327633 Share on other sites More sharing options...
esukf Posted August 18, 2007 Share Posted August 18, 2007 You are saving your files as utf-8 with the Byte-Order-Mark. Save your php files as utf-8 without BOM (or plain ascii if you don't need unicode) will solve the problem. Quote Link to comment https://forums.phpfreaks.com/topic/65536-%C3%AF%C2%BB%C2%BF-character-problem-in-php-page/#findComment-327649 Share on other sites More sharing options...
monika Posted August 18, 2007 Author Share Posted August 18, 2007 well i'm saving fine is ascii.. ... I'd never saved file in utf-8 i use editplus.. Quote Link to comment https://forums.phpfreaks.com/topic/65536-%C3%AF%C2%BB%C2%BF-character-problem-in-php-page/#findComment-327655 Share on other sites More sharing options...
monika Posted August 19, 2007 Author Share Posted August 19, 2007 well u r 100% correct..ITS ALL DUE TO SAVING FILE IN utf-8 now i'd saved all as a ANSI n problem is solved.. Thanx all member for your time.. ESp~ Thanx to esukf -- Monika Quote Link to comment https://forums.phpfreaks.com/topic/65536-%C3%AF%C2%BB%C2%BF-character-problem-in-php-page/#findComment-328163 Share on other sites More sharing options...
Azu Posted August 19, 2007 Share Posted August 19, 2007 Hmm nope that's defiantly not Ascii, and if this "editplus" thing is telling you that it is, then it's VERY bugged up. Use notepad or something. Quote Link to comment https://forums.phpfreaks.com/topic/65536-%C3%AF%C2%BB%C2%BF-character-problem-in-php-page/#findComment-328211 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.