char->integer

[procedure] char->integer char

R5RS: Returns an exact integer representation of a character char. Implementation can choose their preferred mappings between chars and integers as far as the round-trip conversion is guaranteed and the order of chars by char<=? and the order of resulting integer are consistent.

R6RS: Returns a Unicode scalar value corresponds to a character char. Particularly, this means the returned value falls in a range between [0, #xd7ff] or [#xe000, #x10ffff].

See also integer->char.