• ���� ����� �� CP866

    From Nil A@2:5015/46 to All on Mon Oct 7 19:46:04 2024
    Hello, All!

    ��祬� ����� � �⮬ ��襬 䨤� ���ᮢ��� �� �� �थ窨 � ᬠ����� �� CP866 ���� ᨬ���� �஡��� 0x20? https://en.wikipedia.org/wiki/Code_page_866

    ��� �� ���� � �ࠤ��� ��᫠��, � ���箪 �ய���뢠���� "61� �.�.". �.�. ��室� ����� �� �� � � ��稥 ������ ��� ���᪮��, �� �� ����.

    Best Regards, Nil
    --- GoldED+/LNX 1.1.5-b20240306
    * Origin: FidoNet member since 1995 (2:5015/46)
  • From Oleg Nazaroff@2:50/700.700 to Nil A on Tue Oct 8 23:20:49 2024
    Hello, Nil A.
    On 07.10.2024 19:46 you wrote:

    ��祬� ����� � �⮬ ��襬 䨤� ���ᮢ��� �� �� �थ窨 � ᬠ����� �� CP866 ���� ᨬ����
    �஡��� 0x20? https://en.wikipedia.org/wiki/Code_page_866 ��� �� ���� � �ࠤ��� ��᫠��, �
    ���箪 �ய���뢠���� "61� �.�.". �.�. ��室� ����� �� �� � � ��稥 ������ ���
    ���᪮��, �� �� ����.

    � �� ��� �� �����⠫ �⮫�. ��� ����� �� �筮 �஫����.

    --
    WBR, ON
    --- ��℮�/2.14.5/Android
    * Origin: Somewhere at Russia, in the hut on chicken legs... (2:50/700.700)
  • From Alexey Khromov@2:5030/723 to Nil A on Tue Oct 8 23:49:02 2024
    �������, Nil!

    ��祬� ����� � �⮬ ��襬 䨤� ���ᮢ��� �� �� �थ窨 � ᬠ�����
    �� CP866 ���� ᨬ���� �஡��� 0x20? https://en.wikipedia.org/wiki/Code_page_866

    ��⮬� �� CP866 ��稭����� � 0x80

    � ��㯯� ASCII 0x00..0x1F ������� Control characters � �ନ����묨 �ணࠬ���� �� �⮡ࠦ�����, � �ਢ���� � ����⢨� �ନ����, ���ਬ�� ⠡��樨 ��� LineFeed. ����� "�� ��" � ᮢ६����� �ନ������ �ணࠬ��� �� ����砫). ���ᮢ�� ������ ᨬ�����, ����, � DOS-e �஢������� ������� � ����������� � ⥪�⮢�� ०��� �������.

    �-��饬, �᫨ ����� �� ᨬ���� � ⥪��, � ��� �⮡ࠦ���� ����� ���� ᨫ쭮 �ᯮ�祭� �� �뢮�� �।�⢠�� �⠭������ ������⥪, ����� ���ਭ����� \t � \n ������ ��� �ࠢ���騥 ᨬ����.

    Alexey Khromov
    --- GoldED+/LNX 1.1.5-b20240309
    * Origin: - �� � ���᭮��! �� ���㦥�� ஡�⠬�! - (2:5030/723)
  • From Nil A@2:5015/46 to Alexey Khromov on Wed Oct 9 03:26:38 2024
    Hello, Alexey!

    08 Oct 24 23:49, from Alexey Khromov -> Nil A:
    ��祬� ����� � �⮬ ��襬 䨤� ���ᮢ��� �� �� �थ窨 �
    ᬠ����� �� CP866 ���� ᨬ���� �஡��� 0x20?
    https://en.wikipedia.org/wiki/Code_page_866
    ��⮬� �� CP866 ��稭����� � 0x80

    ����. �� �⮣� �� ��� ������� cp437.

    � ��㯯� ASCII 0x00..0x1F ������� Control characters � �ନ����묨 �ணࠬ���� �� �⮡ࠦ�����, � �ਢ���� � ����⢨� �ନ����,
    ���ਬ�� ⠡��樨 ��� LineFeed.

    �� � �����. ��直� \r \n ⠬. � ��祬� �� ��뫪� ��� �� �������� ���� � �⮬ ���� �थ窨. � ��� �थ窨!

    Best Regards, Nil
    --- GoldED+/LNX 1.1.5-b20240306
    * Origin: FidoNet member since 1995 (2:5015/46)
  • From Nil A@2:5015/46 to Alexey Khromov on Wed Oct 9 03:49:42 2024
    Hello, Alexey!

    08 Oct 24 23:49, from Alexey Khromov -> Nil A:

    ��祬� ����� � �⮬ ��襬 䨤� ���ᮢ��� �� �� �थ窨 �
    ᬠ����� �� CP866 ���� ᨬ���� �஡��� 0x20?
    https://en.wikipedia.org/wiki/Code_page_866
    ��⮬� �� CP866 ��稭����� � 0x80
    � ��㯯� ASCII 0x00..0x1F ������� Control characters � �ନ����묨 �ணࠬ���� �� �⮡ࠦ�����, � �ਢ���� � ����⢨� �ନ����,
    ���ਬ�� ⠡��樨 ��� LineFeed.

    ��室��, �� � 䨤� ��� ����? �᫨ � �⠢�� ����஢�� CP437, � � ���� ᬠ����� �ᮢ���, � ��稥 ��⪨, ����� �� �஡��� 0x20? � �஬� ᨬ���� \001, ����� ��稭��� kludge � 䨤�, �� �� ����� �� FTS-1.

    ������ ���� ��⮢� https://chatgpt.com/share/6705d315-d1a0-8000-96cd-6dae3b981a24

    I'm looking at code page 437. There are smile characters and other
    "emoji" below the space 0x20 symbol. But as I understand, everything
    under the space symbol are control characters, e.g \n \r line feed and stuff. How can I get those smile characters using cp437 then?

    You're absolutely right that the bytes under 0x20 in code page 437 (CP437) correspond to control characters like line feed (\n), carriage return (\r), etc. These control characters are not directly displayable as symbols or glyphs because they are used for controlling text flow and formatting rather than visual representation.

    However, the smiley faces and other graphical characters you're referring to (like ? and ?) actually start after 0x20, specifically from 0x01 to 0x1F. Normally, these positions in modern character encodings are reserved for control characters, but in CP437 they are mapped to visual symbols.

    To access these smiley characters, you'd need to:
    1. Use the byte values directly from 0x01 to 0x1F when encoding strings using CP437.
    2. Interpret or display them in an environment that understands CP437, such as older DOS systems or software designed to emulate the CP437 font and encoding.

    Here's an example in Python to print those characters by interpreting them as CP437:

    # 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
    ...


    ����, ��⮭��᪨� ��� ॠ�쭮 ᬠ����� ����.

    --- GoldED+/LNX 1.1.5-b20240306
    * Origin: FidoNet member since 1995 (2:5015/46)
  • From Rinat Sadretdinow@2:5020/620.1 to Nil A on Wed Oct 9 11:54:54 2024
    Hello Nil!

    09 Oct 24 03:49, you wrote to Alexey Khromov:

    Here's an example in Python to print those characters by interpreting
    them as CP437:

    # 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:~$ 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)
  • From Rinat Sadretdinow@2:5020/620.1 to Nil A on Wed Oct 9 11:57:08 2024
    Hello Nil!

    09 Oct 24 03:26, you wrote to Alexey Khromov:

    � ��㯯� ASCII 0x00..0x1F ������� Control characters �
    �ନ����묨 �ணࠬ���� �� �⮡ࠦ�����, � �ਢ���� � ����⢨�
    �ନ����, ���ਬ�� ⠡��樨 ��� LineFeed.

    �� � �����. ��直� \r \n ⠬. � ��祬� �� ��뫪� ��� �� ��������
    ���� � �⮬ ���� �थ窨. � ��� �थ窨!

    ��ᮢ��� ����� ��� �� 㣮���. � ��� �ࠢ��쭮 �뫮 ࠭�� ᪠���� �� �᫨ ��� � ��࠭��� ������ ����� �� ����, � ⮣�� ���� �प窨. � �᫨ �१ ��直� �ਭ��� �����, � �थ祪 �� �㤥�. � �᫨ �����-����� XOFF ��砩�� ���������, ����� ⮦� �� ��� ����஫��� �ࠪ�஢, � ����� ��᫥ �⮣� ��祣� �� ��࠭� � �� 㢨����, � ������� ��祣� �� ᬮ���� ���� XON ����� �� �१ �ਭ�� �� ������ ��� �� ��������� Ctrl-Q �� �몭��� (� ᥩ�� �� ��ଠ��� �ନ����, � �� �� �� � ��� �㤥� 㯮���� cmd.exe).

    Bye!

    --- GoldED+/LNX 1.1.5-b20231106
    * Origin: -= Thunder Bird @ home =- (2:5020/620.1)
  • From Vitaliy Aksyonov@1:104/117 to Nil A on Mon Oct 14 21:45:28 2024
    �ਢ��, Nil!

    07 Oct 24 19:46, �� ��ᠫ(�) All:

    ��祬� ����� � �⮬ ��襬 䨤� ���ᮢ��� �� �� �थ窨 � ᬠ�����
    �� CP866 ���� ᨬ���� �஡��� 0x20? https://en.wikipedia.org/wiki/Code_page_866

    ��� �� ���� � �ࠤ��� ��᫠��, � ���箪 �ய���뢠���� "61� �.�.".
    �.�. ��室� ����� �� �� � � ��稥 ������ ��� ���᪮��, �� ��
    ����.

    ����� ��⮬�, �� � KOI8-R, ������ �� �ᯮ�����, �� ���? ;) ���-� ��� �㯮 ����� ���� ���� �� ��㣮�. �᫨ ����஢��, ����筮, �������⮢�. �祣� �� ��蠥� �� �� �थ窨 ��४���஢���.

    Best regards,
    Vitaliy Aksyonov.

    ... ������ �� ������ 䨤�譨��: "���� �����?"
    --- GoldED+/LNX 1.1.5-b20240309
    * Origin: Aurora, Colorado (1:104/117)