Question How to display non ASCII characters in CodeTyphon console aplication?

  • Joel Demetrio
  • Joel Demetrio's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 7 months ago - 2 years 7 months ago #13986 by Joel Demetrio
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.
Last edit: 2 years 7 months ago by Joel Demetrio.

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

More
2 years 7 months ago - 2 years 7 months ago #13987 by Matis A.
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:
Last edit: 2 years 7 months ago by Matis A..
The following user(s) said Thank You: Joel Demetrio

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

  • Joel Demetrio
  • Joel Demetrio's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 7 months ago #13988 by Joel Demetrio
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.

More
2 years 7 months ago - 2 years 7 months ago #13990 by Matis A.
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:
Last edit: 2 years 7 months ago by Matis A..
The following user(s) said Thank You: Joel Demetrio

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

  • Joel Demetrio
  • Joel Demetrio's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 7 months ago #13993 by Joel Demetrio
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.