Powershell code with which, I put together the lines which I made by the code suggested by Jake into a text file with 256 lines length.
Service symbols create two blank lines that do not exist in the original, which must be removed in the original text file befor Powershell processing in order for the resulting file to be created correctly.
I'll just post here what the ASC2 part should look like.
NUL SOH STX ETX EOT ENQ ACK BEL BS TAB LF VT FF CR SO SI DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC FS GS RS US Space ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ PAD HOP BPH NBH IND NEL SSA ESA HTS HTJ VTS PLD PLU RI SS2 SS3 DCS PU1 PU2 STS CCH MW SPA EPA SOS SGCI SCI CSI ST OSC PM APC Non-breakingSpace ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ® ¯ ° ± ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ
In the initial file, each character will be on a new line.
It is better to use Notepad ++ to see the service symbols. It is better to replace them with text with your hands.
Two more service symbols are contained, just below asc2 part and at the end - a lot.
But, to admire the colored emoticons, you can simply copy your favorite text into Word or social network. Word interprets characters better than notepad, but worse than a website.
$arrayFromFile = [IO.File]::ReadAllLines('C:\utf-8.txt')
$counter = [pscustomobject] @{ Value = 0 }
$groupSize = 256
$text=''
$groups = $arrayFromFile | Group-Object -Property { [math]::Floor($counter.Value++ / $groupSize) }
foreach ($group in $groups){
$text+=$group.Group -join (' ')
$text+="`n"
}
$text | Out-File -FilePath 'C:\utf-8 (sorted).txt'