Forum > General
Free Pascal display messed up
(1/1)
Nekoninja:
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:
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:
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:
First result from Google: https://stackoverflow.com/questions/7432545/change-codepage-in-cmd-permanently
Navigation
[0] Message Index