def can_encode(self, encoding, char):
available_map = {}<EOL>try:<EOL><INDENT>available_map = self._get_codepage_char_map(encoding)<EOL><DEDENT>except LookupError:<EOL><INDENT>return False<EOL><DEDENT>is_ascii = ord(char) < <NUM_LIT><EOL>is_encodable = char in available_map<EOL>return is_ascii or is_encodable<EOL>
Determine if a character is encodeable in the given code page.

        :param encoding: The name of the encoding.
        :param char: The character to attempt to encode.