Open topic with navigation

# is_escaped_binary_file

The `is_escaped_binary_file` function checks whether a document has a reasonable proportion of escaped binary characters.

## Syntax

    is_escaped_binary_file( doc [, ThresholdPercent] )

## Arguments

Argument | Description
--- | ---
`doc` | (LuaDocument) The document that you want to check.
`ThresholdPercent` | (float) The minimum percentage of binary escaped content required to return `true`. The default is 10%.

## Returns

Boolean. Returns the result of the check.

## Example

    function handler(document)
       if(is_escaped_binary_file(document))
          write_idx(document, "bad_binary_documents.idx")
       else
          write_idx(document, "good_documents.idx")
    end

© 2017 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm