public static function fromCodeUnit($unit){
		
		if(!\is_numeric($unit)){
			throw new \InvalidArgumentException('$unit must be a number');
		}
		
		$str = \mb_convert_encoding(
				\sprintf('&#%s;', $unit),
				static::ENCODING,
				'HTML-ENTITIES');
		
		return new static($str, static::ENCODING);
		
	}
public static function fromCodeUnit($unit){
		
		if(!\is_numeric($unit)){
			throw new \InvalidArgumentException('$unit must be a number');
		}
		
		$str = \mb_convert_encoding(
				\sprintf('&#%s;', $unit),
				static::ENCODING,
				'HTML-ENTITIES');
		
		return new static($str, static::ENCODING);
		
	}
public static function fromCodeUnit ( $ unit ) { if ( ! \ is_numeric ( $ unit ) ) { throw new \ InvalidArgumentException ( '$unit must be a number' ) ; } $ str = \ mb_convert_encoding ( \ sprintf ( '&#%s;' , $ unit ) , static :: ENCODING , 'HTML-ENTITIES' ) ; return new static ( $ str , static :: ENCODING ) ; }
Converts a code unit to a unicode character in UTF-8 encoding
@param int $unit
@return \static
Converts a code unit to a unicode character in UTF - 8 encoding