This code ruins my webpages

  • mico
  • Beginner
  • Beginner
  • User avatar
  • Posts: 54
  • Loc: Neo Universe

Post 3+ Months Ago

everytime i edit the page, there's always appear this strange character:
ÿþ
before the "<html>" tag after i save the edited page.
and when i check the page on my site, the page content full with strange symbols/characters.

i wonder what makes it so? i just edit the html file as usual..
anybody know what's that and what makes it appear?


[forgive my bad english]
  • Breeze
  • Photographer
  • Guru
  • User avatar
  • Posts: 1029
  • Loc: Australia

Post 3+ Months Ago

I have the strange symbols appearing on some of my pages also, but mine are . They appear before the <html> tag and I didn't put them there, but once i edit them out once they're uploaded to the server they stay gone ...
  • Zwirko
  • Guru
  • Guru
  • User avatar
  • Posts: 1417
  • Loc: 55° N, 3° W

Post 3+ Months Ago

Breeze wrote:
I have the strange symbols appearing on some of my pages also, but mine are . They appear before the <html> tag and I didn't put them there, but once i edit them out once they're uploaded to the server they stay gone ...



What you are seeing is the UTF Byte Order Mark (BOM). It is often seen as the ASCII characters  right at the very start of a file when viewed in certain apps. Why it is there is quite technical.



Mico, what's your native language? It may have something to do with the language code of your browser or html editor. In any case, I'm sure this is a UTF-8 related problem similar to what causes the problem Breeze sees. Try have the page and browser using the same encoding.
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

Joebert has messed around with this abit.

http://develobert.blogspot.com/2007/12/bom-squad.html (http://www.ozzu.com/website-design-forum/utf-bom-t82937.html)
  • mico
  • Beginner
  • Beginner
  • User avatar
  • Posts: 54
  • Loc: Neo Universe

Post 3+ Months Ago

Thank you SpooF. now i can see my mistake in using editor. i use notepad.

Zwirko: yes, i see a warning about to use UTF-8 on the editor when i edit the file. when i upload the file for the first time, i use unicode encoding coz i put kanji in the file content. i don't know what UTF-8 is.
so based on what Joebert wrote, i have to save the file in UTF-8 code, and using Notepad2 or other editor as you said, true?
but if i save in UTF-8, can it read kanji character?
God i'm so blind in web design!
oh, i'm indonesian.


thank you everyone!

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 21 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.