Recent

Author Topic: Free Pascal display messed up  (Read 450 times)

Nekoninja

  • New member
  • *
  • Posts: 9
Free Pascal display messed up
« on: June 10, 2025, 07:45:53 am »
Hello All Free Pascal Users,

I have a problem with the Free Pascal displaying. From the picture that I attached, it looks so awful. Let me explain first. I had problems with displaying the Unicode, using the <cough> Microsoft <cough> Visual Studio 2022 C++. So, after researching and bugging the AI like ChatGPT and Co-Pilot for help and found a way to solve my unicode problem. Since I have Window 11 (latest version) I went to the Control Panel, Region, Administrative and click Change system locale then check Beta: Use Unicode UTF-8 for worldwide language support. That solved my Unicode struggles, but the side effect is that Free Pascal look awful. The only way to fix it is to uncheck the Beta: Use Unicode UTF-8 for worldwide language support setting. There must be a way to display Free Pascal beautiful again.

Thank you for your help.

Khrys

  • Full Member
  • ***
  • Posts: 242
Re: Free Pascal display messed up
« Reply #1 on: June 10, 2025, 08:16:36 am »
You can change the code page of an open  cmd  terminal by using  chcp  (change code page)  with some code page identifier.
UTF-8 is  65001,  and the default code page (on my machine, at least) seems to be  437,  so to make the text mode IDE beautiful again I'd run  chcp 437 && fp.

Nekoninja

  • New member
  • *
  • Posts: 9
Re: Free Pascal display messed up
« Reply #2 on: June 12, 2025, 02:09:19 am »
That works. But I would have to do this every time I run the FPC. I used the 'File->Command Shell' then type chcp 437 && fp. Is there another way to make it auto or change the setting somewhere?


Thank you for your help.

dseligo

  • Hero Member
  • *****
  • Posts: 1522
Re: Free Pascal display messed up
« Reply #3 on: June 12, 2025, 02:23:24 am »

 

TinyPortal © 2005-2018