def is_latin_1_encodable(value: str) ->bool:
    """Header values are encoded to latin-1 before sending."""
    try:
        value.encode('latin-1')
        return True
    except UnicodeEncodeError:
        return False
