Hi,
I normally program in Windows 7 using the Free Pascal IDE less or more or the comand line compiler.
Now I tried to port a batch program to run in Linux Mint 17. So far it works all BUT: my writeln - outputs
dont show german special characters Ä Ö Ü or ß and so on. Simply on desktop - I didnt gone into detail
yet to study if the files are correct, any logic and so on.
I tried both. in the IDE (lol the characters can be seen there but not then in the running program) and
in Terminal using comand line compiler, I can type ä ö ü in the terminal all fine. Showing me the source
.pas in Krusader using F3 or F4 shows problems (sorry I am Linux beginner).
I just thought about transforming my source into UTF8 by tool as I did for one Java/Eclipse project before.
But I remember another project in LAZARUS (now no batch but OO) where I could use the sources as
well in both Windows and Linux Mint.
And now the special effect. I created "hello world" program in the FP IDE (started by simply FP in the terminal)
and wanted to writeln('ÄÖÜß') direct from keyboard. My typed letters where translated into some cryptic.
Run the program - ok Ä Ö Ü ß on the screen.
But: creating a string constant with that content, writeln it - problem again.
Counting any single char of the string, writeln the char and the ORD code - problem.
For i:=1 to 255 do write(CHR(i)) - you may imagine, after 128 problem,
What do I make wrong? Anybody can tell me, whos ghosting me? Linux? The terminal?
Free Pascal?
If it helps, I have one more indiz: The only one line of code I disabled in my origin source
code when porting from Windows to Linux, was
DefaultSystemCodePage:=TextRec(Output).CodePage;
I got compiler error - dont know why by now. But I thought first solve the crazy
"hello world" behaviour then look, if my Windows Codepage problem with the
data is still needed in Linux.
Thank you for any help
Bernd