Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unicode in the textare

Status
Not open for further replies.

newbie57

Technical User
Dec 9, 2004
1
US
Silly question:

I need to put unicode in the text area:

<textarea name="message">&#1048</textarea>

This works well and the symbol appears as it supposed to. However, when I'm trying to set the value of the text area dynamically through the javascript something like that:

document.form.message.value=&#1048

Then the actual coded string appears, instead of symbol. Is there something to the effect of unicode escape character ?

How can I solve this ?

Thanks.
 
This worked fine for me:

Code:
<form name="f">
 <textarea name="message"></textarea>
 <input type="button" name="b" value="b" onclick="this.form.message.value='&#1048'" />
</form>

*cLFlaVA
----------------------------
[tt]insert funny quotation here.[/tt]
 
me = copy-paste-laziness.

*cLFlaVA
----------------------------
[tt]insert funny quotation here.[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top