var$ = Chr(value[, encoding])
value into a string.
The optional encoding parameter can be used to set the character encoding
to use. This defaults to the default string encoding set using SetDefaultEncoding().
See Character encodings for details.
If you want to work with raw bytes instead of code points, you can either set the
encoding parameter to #ENCODING_RAW or use the ByteChr()
function. See ByteChr for details.
Note that if you pass 0 in value this function will always return an empty
string. If you want to have a string that contains a NULL character
instead, use the ByteChr() function.
test$ = Chr(65) Print(test$)This will print "A" to the screen because 65 is the code point value for "A", in both ASCII and Unicode character encodings.