Results 1 to 3 of 3

Thread: swissarmy symbol at counter, why?

  1. #1
    Join Date
    Dec 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default swissarmy symbol at counter, why?

    Hi
    I have set the script and I added a counter, but counter appears in the middle of a symbol <?>. Why?
    You can see here
    http://www.belenelche.com/finalCAM10/fotosCAM10.html
    Thanks

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,070
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    This is an encoding issue. The page uses UTF-8 and the script is in iso-8859-1. We could try to resolve that, but encoding issues can sometimes be very hard to track down as to cause and fix.

    If there's a simpler way, as there is in this case, may as well go for it.

    Open up the swissarmy.js file in a text only editor like NotePad and find the word:

    of

    It appears only once (around line #119), you will see something like:

    Code:
     . . . id+'"><\/span><\/b> of<span style="fon . . .
    See that space right before of? It might be a question mark or some garbage character. Whatever it is, replace it with the &nbsp; entity:

    Code:
     . . . id+'"><\/span><\/b>&nbsp;of<span style="fon . . .
    Save the file and upload it to the server overwriting the one currently there. You may have to refresh the browser and/or clear its cache to see the change take affect.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks
    Now it works fine.

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
  •