public static function utf8Encode($data) {
		if (is_string($data)) {
			return utf8_encode($data);

		} else if (is_array($data)) {
			foreach ($data as $key => $value) {
				$data[utf8_encode($key)] = self::utf8Encode($value);
			}

		} else if (is_object($data)) {
			foreach ($data as $key => $value) {
				$data->{$key} = self::utf8Encode($value);
			}
		}

		return $data;
	}
public static function utf8Encode($data) {
		if (is_string($data)) {
			return utf8_encode($data);

		} else if (is_array($data)) {
			foreach ($data as $key => $value) {
				$data[utf8_encode($key)] = self::utf8Encode($value);
			}

		} else if (is_object($data)) {
			foreach ($data as $key => $value) {
				$data->{$key} = self::utf8Encode($value);
			}
		}

		return $data;
	}
public static function utf8Encode ( $ data ) { if ( is_string ( $ data ) ) { return utf8_encode ( $ data ) ; } else if ( is_array ( $ data ) ) { foreach ( $ data as $ key => $ value ) { $ data [ utf8_encode ( $ key ) ] = self :: utf8Encode ( $ value ) ; } } else if ( is_object ( $ data ) ) { foreach ( $ data as $ key => $ value ) { $ data -> { $ key } = self :: utf8Encode ( $ value ) ; } } return $ data ; }
Encode a resource object for UTF-8.

@access public
@param mixed $data
@return array|string
@static
Encode a resource object for UTF - 8 .