Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Distribution: Slackware 11.0 [both lap & pc] WinXP
Posts: 164
Rep:
Weird Stuff on my Website
I run http://virtz.ath.cx on my windows apache webserver, and last night i decided to go back to linux since i missed it.
i stored my websites stuff in a pen drive, and then copied htdocs and replaced the old htdocs i had on linux with the ones from windows.
i tend to restart my xampp, and i did when i access it, its when the problem starts, on my htdocs the website preview is displayed perfect, but as soon as i try to open it with firefox, it shows a bunch of code with squares on it, if i tried it under netscape, only the source code shows.
i dont know why this has happened, but its hard to update everything, and im getting frustraded with this, if someone could help me telling me why, please id really appreciate
-Jerry V.
[ try visiting see if you get the same screen as i do ]
Something that is quite interesting about this page is that when viewed with Firefox it shows the odd square character between each letter. I saved the page and then opened it with Konqueror and the source shows clearly. I then copied the whole page and pasted it into a text editor and there is a space between each letter. I quickly removed the spaces with find and replace. You would probably have to do some fine editing after this.
Distribution: Slackware 11.0 [both lap & pc] WinXP
Posts: 164
Original Poster
Rep:
i did the same[find n replace], and its not the same, the first top part messes up, right now im running it on windows again, since it messed up on linux, its the first time this happens, it could probably be because for one of the menu items i put those odd characters for a sorority SOP so i had to put sygma omega pi, maybe if move that you think the code could work perfect?
There are two problems with the index page that I can see.
a) The file starts with hex ff fe before the opening html bracket (ÿþ if it displays correctly here) - these should not be present.
b) Starting at the opening html bracket, every second character is hex 00.
I'd guess this unwelcome modification happened on the way to or on the way from the pen drive... wrong mount options perhaps?
If this corruption follows the same pattern over all the files, you could clean them up easily with a sed script.
Edit: This corruption is only in some files. the_shit.jpg is OK, videos.html and random.html are also OK. index.html and /sop/sop_index.html have the corruption.
If you have a shell on the server, you can cd to your html directory and use the following to help identify affected files (NOTE: it will also catch binary files that may legitimately have this string in the first line so use results with caution):
grep -r -m 1 ÿþ ./
Distribution: Slackware 11.0 [both lap & pc] WinXP
Posts: 164
Original Poster
Rep:
I Finally found out what it was, since i input those Sygma Omega Pi characters, since i was using stupid Visual Studio, it saved it under some different encoding called Unicode or so, some of my friends use firefox, and they couldnt go in it, so now i used entity names, and saved it on regular coding settings, and it seems to work for them now too, thanx alot for this guys, you all rock [ and so does linux ] now i can go back to linux and just modify it all
-Jerry *appreciate the help *
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.