Welcome Guest, Not a member yet? Register   Sign In
Letters before doctype
#1

[eluser]Dinko[/eluser]
Hello,

Maybe its not releated to Codeigniter but i saw on stackowerflow that one user had this problem with one function(here: http://stackoverflow.com/questions/44522...tput-issue). I've got some strange letters breaking up my page. They are appering under navigation but if i check source code they are located before DOCTYPE.
Code:
ghgh<!DOCTYPE html>
&lt;html lang="en"&gt;
I searched trough files but couldn't find anything.
#2

[eluser]CroNiX[/eluser]
Most likely you are echoing something from somewhere other than a view. echo'ed output will show up before the (buffered) views get sent to the browser.
#3

[eluser]InsiteFX[/eluser]
Or he saved his files with the BOM.

You need to save your code files with out the BOM.
#4

[eluser]Dinko[/eluser]
Ok, its not BOM. Saved without BOM and same problem again.
Also i searched every file for word "ghgh" and nothing.

Any ideas?

Ty.
#5

[eluser]InsiteFX[/eluser]
It's the BOM, once saved even if you change it to not save with the BOM the characters are still in the file.

You need to do a copy and paste into a new file then save it.
#6

[eluser]Dinko[/eluser]
[quote author="InsiteFX" date="1342819914"]It's the BOM, once saved even if you change it to not save with the BOM the characters are still in the file.

You need to do a copy and paste into a new file then save it.
[/quote]
Yea, i did that but still...its there.
#7

[eluser]Unknown[/eluser]
Thanks
#8

[eluser]InsiteFX[/eluser]
If it is still there then you have some thing configured wrong in your editor.
#9

[eluser]Dinko[/eluser]
I'm using netbeans but in this case i was editing and copying files through notepad++. I'll try to search more on internet. I'll post here if i find any solution.

EDIT:

Thx guys. I finally found mistake. In one of my config files i typed "gh" before everything.




Theme © iAndrew 2016 - Forum software by © MyBB