CodeIgniter Forums
bad initial output - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: bad initial output (/showthread.php?tid=18127)



bad initial output - El Forum - 04-26-2009

[eluser]Unknown[/eluser]
I recently re-wrote my simple website in CI.
On my local dev machine (ubuntu LAMP) everthing is fine.
When I moved it to my host (hostgator) everything is fine
EXCEPT I'm getting three extra chars at the start of my
html output.

I'm stumped!


bad initial output - El Forum - 04-26-2009

[eluser]Thorpe Obazee[/eluser]
You could probably post some code.. probably someone is bound to answer...


bad initial output - El Forum - 04-27-2009

[eluser]TheFuzzy0ne[/eluser]
I'm stumped too. Not surprising given the total lack of information you've supplied. Smile It would be a great start to know exactly what three characters you're getting, and on what pages. If it's on all your pages, it's probably something to do with the view, in which case please post it.


bad initial output - El Forum - 04-27-2009

[eluser]Dam1an[/eluser]
I can't remember the exact details, but saw a similar thread a few weeks back, with 3 random characters appearing. It was something to do with Byte Order Mark, an optional parameter somewhere fixed it...
Sorry I can't be more specific, but someone might remember what I'm on about


bad initial output - El Forum - 04-27-2009

[eluser]TheFuzzy0ne[/eluser]
Try validating your HTML. You have probably forgotten to declare the content type:

Code:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

http://www.w3.org/International/tutorials/tutorial-char-enc/