a php class for detecting Unicode type