View Full Version : swissarmy symbol at counter, why?

12-28-2010, 04:14 PM
I have set the script and I added a counter, but counter appears in the middle of a symbol <?>. Why?
You can see here

12-29-2010, 04:50 AM
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:


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

. . . 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:

. . . 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.

12-29-2010, 10:26 AM
Now it works fine.