Forum Moderators: open

Message Too Old, No Replies

ASCII codes does not render correctly on Mozilla, but on IE

Any solutions to this problem?

         

Seige

10:43 pm on Feb 25, 2005 (gmt 0)

10+ Year Member



I want to display some text in a <textarea> tag, WITH raw ASCII codes, e.g. &#65; which represents "A"

now, ideally, on IE it should be coded as &amp;#65; within the teatarea tag. But mozilla doesn't render it correctly and will return the way just as it is. Can anybody help me to solve this issue?

zollerwagner

3:31 am on Feb 26, 2005 (gmt 0)

10+ Year Member



Do you want this to appear as the A letter or as the code?

Seige

7:05 pm on Feb 26, 2005 (gmt 0)

10+ Year Member



as the ASCII code

zollerwagner

7:45 pm on Feb 26, 2005 (gmt 0)

10+ Year Member



That's odd.

I often refer to web pages on unicode and they use that technique successfully. For example, to display the underlying code for "*" they use "&amp;#42;"

But that's not in a textarea.

What if you "spell out" all of the letters of the unicode item, like this:
&amp;&#35;&#54;&#53;&#59;

Longhaired Genius

7:58 pm on Feb 26, 2005 (gmt 0)

10+ Year Member



How old is your version of Mozilla? I just tried all the above examples in a text area in IE, Opera, Firefox 1.0, and Mozilla 1.6 with exactly the same (expected) results in them all.