Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

How to display non ASCII characters in CodeTyphon console aplication? 5 years 1 month ago #13986

  • Joel Demetrio
  • Joel Demetrio's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
Hello everyone, I love CodeTyphon, as well as other users, I use Delphi and Lazarus for many years ...
This new version ( CT 6.9 ) is a bit complicated to use the old libraries, usually on console I use ASCII characters like 187 = ╗, in Lazarus used the lib LazUTF8 with the UTF8ToConsole function to get around screen print errors, example:
uses LazUTF8;
var
   Txt1: string;
   Txt2: string;
begin
   txt1: = 'éééééééééé';
   txt2: = 'àààààààààà';
   writeln (UTF8ToConsole (Txt1));
   writeln;
   writeln (UTF8ToConsole (Txt2));
   readln ();

Would anyone have a suggestion? I thank you in advance for your attention.

Please Log in or Create an account to join the conversation.

Last edit: by Joel Demetrio.

How to display non ASCII characters in CodeTyphon console aplication? 5 years 1 month ago #13987

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1114
  • Thank you received: 165
Thanks Sir

you can use the same as Lazarus methodology

add to your project bs_utils pkg to use LazUTF8 unit

look in to attach file sample zzz2.zip


PilotLogic Core Programmer
Attachments:
The following user(s) said Thank You: Joel Demetrio

Please Log in or Create an account to join the conversation.

Last edit: by Matis A..

How to display non ASCII characters in CodeTyphon console aplication? 5 years 1 month ago #13988

  • Joel Demetrio
  • Joel Demetrio's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
After compile and instal bs_utils, crashing on started CT and CT no more open :(
Attachments:

Please Log in or Create an account to join the conversation.

How to display non ASCII characters in CodeTyphon console aplication? 5 years 1 month ago #13990

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1114
  • Thank you received: 165
Restore Defaults Setting from CTCenter



Or

Remove and build Typhon IDE from CTCenter



Unzip zzz2.zip and open sample project

bs_utils pkg is in Typhon IDE
Simple ADD to your project the bs_utils pkg to use LazUTF8 unit.



PilotLogic Core Programmer
Attachments:
The following user(s) said Thank You: Joel Demetrio

Please Log in or Create an account to join the conversation.

Last edit: by Matis A..

How to display non ASCII characters in CodeTyphon console aplication? 5 years 1 month ago #13993

  • Joel Demetrio
  • Joel Demetrio's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
I just have to thank you so much for the help, so I fell in love with CT, its instructions and tips worked perfectly, the quality and power of CT tools and productivity are second to none. :)

Please Log in or Create an account to join the conversation.

  • Page:
  • 1