static function Trans($text,$from_charset,$to_charset,$options = array()){
		$from_charset = self::_GetCharsetByName($from_charset);
		$to_charset = self::_GetCharsetByName($to_charset);
		if($from_charset==$to_charset){
			return $text;
		}
		return self::_Trans($text,$from_charset,$to_charset,$options);
	}
static function Trans($text,$from_charset,$to_charset,$options = array()){
		$from_charset = self::_GetCharsetByName($from_charset);
		$to_charset = self::_GetCharsetByName($to_charset);
		if($from_charset==$to_charset){
			return $text;
		}
		return self::_Trans($text,$from_charset,$to_charset,$options);
	}
static function Trans ( $ text , $ from_charset , $ to_charset , $ options = array ( ) ) { $ from_charset = self :: _GetCharsetByName ( $ from_charset ) ; $ to_charset = self :: _GetCharsetByName ( $ to_charset ) ; if ( $ from_charset == $ to_charset ) { return $ text ; } return self :: _Trans ( $ text , $ from_charset , $ to_charset , $ options ) ; }
Converts string from source charset to target charset.

Parameter can be an array of string and the method also returns array with all converted strings.

$options description
- "recode_array_keys" - when $text is of type array, also its keys will be converted

@param string|array $text
@param string $from_charset input charset
@param string $to_charset output charset
@param array $options
- recode_array_keys usable only when $text is array; then also keys will be converted
@return string|array
Converts string from source charset to target charset .