forum-msg-id-131448-edit

Original date:2017-10-17 14:07:53 Edited by: _tom Subject: Re: (rant) unicode-text

For the documentation a new exa`mple:

Example

You can use any text encoding format because atom|sequence data-types are number based. Legacy code-pages provide 256 characters. The first 127 are plain-text (same as utf) and the rest are code-page specific. The (windows) console only outputs text in a code-page format; a (unix) terminal can be optionally set to a code-page.

-- (unix) terminal dropdown menu: Terminal | Set Character Encoding | Add or remove | ... 
-- (windows) console: edit the registry 
 
-- set code page to CP866 for `Cyrillic/Russian` 
 
sequence chr = {} 
 
for c = 32 to 256 do 
    chr = append(chr, c ) 
end for 
     
puts(1, chr ) 
 
-->  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ 
--  [\]^_`abcdefghijklmnopqrstuvwxyz{|}~АБВГДЕЖЗИЙКЛМНОПРСТУФХ 
--  ЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨   
--  ╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў∙√№■ 
 
Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu