Nп/п : 22 из 100
От : Rinat Sadretdinow 2:5020/620.1 09 окт 24 11:54:54
К : Nil A 09 окт 24 12:47:02
Тема : Глупый вопрос про CP866
----------------------------------------------------------------------------------
@MSGID: 2:5020/620.1 67064563
@REPLY: 2:5015/46 6705d53a
@CHRS: CP866 2
@TZUTC: 0300
@TID: hpt/lnx 1.9.0-cur 2021-08-03
Hello Nil!
09 Oct 24 03:49, you wrote to Alexey Khromov:
NA> Here`s an example in Python to print those characters by interpreting
NA> them as CP437:
NA> # Python 3 example to print CP437 smiley characters
NA> smiley_bytes = bytes([0x01, 0x02]) # ? and ? (CP437 values)
NA> print(smiley_bytes.decode(`cp437`)) # Decode using CP437 encoding
NA> ...
NA> Кстати, питоновский код реально смайлики рисует.
АВОТХРЕН! Ничего он не рисует, вообще ничего:
===
rhs@sys3175:~$ cat>fafafa.py
# Python 3 example to print CP437 smiley characters
smiley_bytes = bytes([0x01, 0x02]) # ? and ? (CP437 values)
print(smiley_bytes.decode(`cp437`)) # Decode using CP437 encoding
rhs@sys3175:~$ python fafafa.py
rhs@sys3175:~$
===
Bye!
--- GoldED+/LNX 1.1.5-b20231106
* Origin: -= Thunder Bird @ home =- (2:5020/620.1)
SEEN-BY: 50/109 104/117 221/6 240/1120 301/1 341/66
451/31 452/28 166 455/19
SEEN-BY: 463/68 467/888 4500/1 5000/111 5001/100
5005/49 5015/42 46 5019/40
SEEN-BY: 5019/400 5020/113 545 620 715 828 830
846 848 1042 2992 4441 12000
SEEN-BY: 5022/128 5030/49 115 1081 1474 5053/51 55
5054/8 89 5058/104
SEEN-BY: 5060/900 5061/133 5066/18 5068/45 5083/1
444 6090/1
@PATH: 5020/620 1042 4441