adding characters like character 253, 254 to javascript strings

L

lallous

Hi,

Convert the character to hex and build the string as:

str = '\xFD\xFE';

as \xHEXCODEHERE

regards,
Elias
 
V

Vincent Nuijjten

Hello,

My question is:

I'm adding character 253 to a javascript string this way:

var str = '';

str += 'a';
str += unescape('%FD');
str += 'b';

Is there another way to do this. Is there a function like: str += char(253)
?

Thanks in advance,

Vincent
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top