encode-char

encode-char is a built-in function in `C source code'.

(encode-char CH CHARSET &optional RESTRICTION)

Encode the character CH into a code-point of CHARSET.
Return nil if CHARSET doesn't include CH.