def convert_to_base(decimal_number, base, digits):
    """Converts decimal numbers to strings of a custom base using custom digits."""
    if decimal_number == 0:
        return ''
    return digits[decimal_number % base] + convert_to_base(decimal_number // base, base, digits)