pywintypes.IsTextUnicode

int, int = IsTextUnicode(str, flags )

Determines whether a buffer probably contains a form of Unicode text.

Parameters

str : string

The string containing the binary data.

flags : int

Determines the specific tests to make

Return Value

The function returns (result, flags), both integers.
result is nonzero if the data in the buffer passes the specified tests.
result is zero if the data in the buffer does not pass the specified tests.
In either case, flags contains the results of the specific tests the function applied to make its determination.