Letters before doctype |
[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>
[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.
[eluser]InsiteFX[/eluser]
Or he saved his files with the BOM. You need to save your code files with out the BOM.
[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.
[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.
[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.
[eluser]InsiteFX[/eluser]
If it is still there then you have some thing configured wrong in your editor.
[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. |
Welcome Guest, Not a member yet? Register Sign In |