Re: (rant) unicode-text

new topic     » goto parent     » topic index » view thread      » older message » newer message

For the documentation a new example:

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{|}~АБВГДЕЖЗИЙКЛМНОПРСТУФХ 
--  ЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨   
--  ╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■  
 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu