SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Apr 2009
    Location
    UK
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post Strange square / rectangular symbols within .js files in temporary internet files

    Hi, I've been studying web design on and off for a few years now, i'm new to this site and this is my first post. To begin:

    I've been snooping within the 'temporary internet files' folder and have copied a few javascript and css files to analyze, some of them contain rectangular type squares and I think they haven't been put there by the script writer but by some process since they've been put online.

    G.o.o.g.l.e search engine didn't accept the squares when I tried to paste them in.

    Can anyone tell me the who, what, when, where, why and how of these strange squares, essentially what they are and how they got there. I have an idea they're something to do with unicode carriage returns or something like that.

    I've attached a screenshot of one the files so you see what I mean.

    Probably a simple answer to this question, thanks in advance.

    Syex
    Attached Images Attached Images

  2. #2
    SitePoint Wizard
    Join Date
    Jul 2003
    Location
    Kent
    Posts
    1,921
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Probably new line characters in a different character set.

  3. #3
    SitePoint Enthusiast CKEANEDesign's Avatar
    Join Date
    Mar 2009
    Location
    Chicago, IL
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah.
    I recommend downloading TextPad when writing code out. It works with HTML, Javascript, CSS, everything!

    Plus it's free.

    I doubt those squares would be there in TextPad.

  4. #4
    #titanic {float:none} silver trophy
    molona's Avatar
    Join Date
    Feb 2005
    Location
    from Madrid to Heaven
    Posts
    8,271
    Mentioned
    252 Post(s)
    Tagged
    1 Thread(s)
    It could be a problem with the character set and for the position of the squares I think that they are related to hidden characters such as.... the intro!!

    That's what I think they are... intros

  5. #5
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It could be that the original files are using Unix-style line breaks (\n). Notepad on Windows don't understand those, if I recall correctly, since it expects DOS-style line breaks (\r\n). It therefore tries to render the line break character, which, of course, doesn't have a printable glyph, so it gets replaced with a missing-glyph glyph (the empty square).
    Birnam wood is come to Dunsinane


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •