pywintypes.IsTextUnicode
int, int = IsTextUnicode(str, flags )
Determines whether a buffer probably contains a form of Unicode text.
Parameters
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.