private function authPrecheckObjectEncoding(&$options)
    {
        $tmp_object = $options[self::OSS_OBJECT];
        try {
            if (OssUtil::isGb2312($options[self::OSS_OBJECT])) {
                $options[self::OSS_OBJECT] = iconv('GB2312', "UTF-8//IGNORE", $options[self::OSS_OBJECT]);
            } elseif (OssUtil::checkChar($options[self::OSS_OBJECT], true)) {
                $options[self::OSS_OBJECT] = iconv('GBK', "UTF-8//IGNORE", $options[self::OSS_OBJECT]);
            }
        } catch (\Exception $e) {
            try {
                $tmp_object = iconv(mb_detect_encoding($tmp_object), "UTF-8", $tmp_object);
            } catch (\Exception $e) {
            }
        }
        $options[self::OSS_OBJECT] = $tmp_object;
    }
private function authPrecheckObjectEncoding(&$options)
    {
        $tmp_object = $options[self::OSS_OBJECT];
        try {
            if (OssUtil::isGb2312($options[self::OSS_OBJECT])) {
                $options[self::OSS_OBJECT] = iconv('GB2312', "UTF-8//IGNORE", $options[self::OSS_OBJECT]);
            } elseif (OssUtil::checkChar($options[self::OSS_OBJECT], true)) {
                $options[self::OSS_OBJECT] = iconv('GBK', "UTF-8//IGNORE", $options[self::OSS_OBJECT]);
            }
        } catch (\Exception $e) {
            try {
                $tmp_object = iconv(mb_detect_encoding($tmp_object), "UTF-8", $tmp_object);
            } catch (\Exception $e) {
            }
        }
        $options[self::OSS_OBJECT] = $tmp_object;
    }
private function authPrecheckObjectEncoding ( & $ options ) { $ tmp_object = $ options [ self :: OSS_OBJECT ] ; try { if ( OssUtil :: isGb2312 ( $ options [ self :: OSS_OBJECT ] ) ) { $ options [ self :: OSS_OBJECT ] = iconv ( 'GB2312' , "UTF-8//IGNORE" , $ options [ self :: OSS_OBJECT ] ) ; } elseif ( OssUtil :: checkChar ( $ options [ self :: OSS_OBJECT ] , true ) ) { $ options [ self :: OSS_OBJECT ] = iconv ( 'GBK' , "UTF-8//IGNORE" , $ options [ self :: OSS_OBJECT ] ) ; } } catch ( \ Exception $ e ) { try { $ tmp_object = iconv ( mb_detect_encoding ( $ tmp_object ) , "UTF-8" , $ tmp_object ) ; } catch ( \ Exception $ e ) { } } $ options [ self :: OSS_OBJECT ] = $ tmp_object ; }
Checks the object's encoding. Convert it to UTF8 if it's in GBK or GB2312

@param mixed $options parameter
Checks the object s encoding . Convert it to UTF8 if it s in GBK or GB2312