<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _compile_create_encoding(self, sql, connection, blueprint):
 """ Append the character set specifications to a command. :type sql: str :type connection: orator.connections.Connection :type blueprint: Blueprint :rtype: str """

        charset = blueprint.charset or connection.get_config("charset")
        if charset:
            sql += " DEFAULT CHARACTER SET %s" % charset

        collation = blueprint.collation or connection.get_config("collation")
        if collation:
            sql += " COLLATE %s" % collation

        return sql