Skip to content

Help about fromCharCode function

lot chan

Asked Jun 2, 2006, 11:02 AM EDT1 answer
Share
LinkedInX
Hi everyone, Could someone tell me that is there any function in C# is equivalent to the JavaScript's String.fromCharCode??? String.fromCharCode(...) is a function in JavaScript that returns a string from a number of Unicode character values. For example, alert(String.fromCharCode(65)); // the output is "A" alert(String.fromCharCode(65,66,67)); // the output is "ABC" alert(String.fromCharCode(34920,22969)); // the output contains some chinese or japanese charachers Is there any function in C# similarly does the task above? Thank you very much. Lot.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    all i know of is Convert.ToChar( number );

    that should give you the char 'A' from Convert.ToChar(65);

    I would doubt it supports any extended chars like chinese etc
    0