View Full Version : AJAX Includes script - sign?

01-10-2007, 01:03 PM
Hi Great Site.

I have a simple question hopefully there's a simple answer...

I have used the AJAX Includes script (http://www.dynamicdrive.com/dynamicindex17/ajaxincludes.htm)

To link several reports into one large report ... this work great, except that everything is copied through, except signs, dollar signs work fine however the sign simply does not appear in the full report, and as you can imagine this is quite critical at times.:confused:

Is there a way I can get round this?

Thanks in advance


01-10-2007, 02:16 PM
Is the £ just part of text? The issue is, perhaps, that you could use the html ascii code (or entity) for the symbol, not the character itself. http://lookuptables.com should help.

Use &#num; to display in the html.

I'm not exactly sure what the issue is, but this should be a workaround.

Logically, something about the character, considering it is in an extended character set, is just not liked somewhere in the process.

Dollar signs should work... they're very normal characters. The £ symbol isn't. To play with this, you could test other symbols as well, such as accented characters, and upsidedown question marks and exclamation points, etc etc. (And greek letters are always fun...)

01-10-2007, 03:29 PM
Thanks for that idea, unfortunatly didn't work. I just get the &#num in the final text,

Just to clarify the is included in the text from the original html file.

For Example.....

"Applications reduce to just under 157m (10,678 cases)"

in the original file is displayed as ...

"Applications reduce to just under 157m (10,678 cases)."

in the combined document, which is rather frustrating!.:rolleyes:

Are there any similar scripts which do the same task but do display the sign?



01-10-2007, 03:42 PM
I just get the &#num in the final text,

Did you type in just like that, or did you look at the table and put the correct number for your symbol? (For example: did you type it in "&#num" or "& # 163;"?)

Edit: Do not put the spaces between them like I did above. I had to do it like that on here or else it would actually display the character.

01-10-2007, 04:43 PM
This is one solution, but should not be necessary. So long as both pages are UTF-8 encoded, and the server specifies this, there should be no issue.

01-10-2007, 06:36 PM
Yes, &#num; is invalid. &#XX;.... use the number of the character to be displayed, as thetestingsite said.

Twey, does that work in all browsers? It is an extended/unusual character, so not sure if that's the case... But you're saying so, so it likely is.

01-10-2007, 06:43 PM
It is an extended/unusual browser, so not sure if that's the case...What is? If you mean "encoding" rather than "browser," then yes, all modern browsers ought to support UTF-8.

01-10-2007, 06:44 PM
I don't know why I typed browser. Sorry for the typo. (Fixing above.)

I meant extended/unusual character.

01-11-2007, 03:01 PM
Thanks for all the assistance

Yes I type in "&#num" with no spaces however this was not read the same as the sign itself.

I will continue to investigate and let you know if I find an answer.

Not being an experienced web author I'm not really sure what "UTF-8 encoded" means? ... How would I know if the pages were UTF-* encoded?

Once again many thanks


01-12-2007, 03:51 PM
Thankyou all.

After spending a little more time the "&#163" idea worked a treat.

Thanks for you help :)

01-12-2007, 08:07 PM
Glad to hear it.

01-12-2007, 10:42 PM