Apparently a program compiled with plain text source code have the French characters displayed correctly in the final executable. On the other ends a program compiled with UTF-8 source code have the French characters displayed incorrectly in the final executable. See the screen capture of this here :
https://www.dropbox.com/s/ml307vnybpeqm ... 8.png?dl=0
In both cases the source code look exactly the same. Save this one as Test UTF-8.pb making sure the file format is UTF-8
Code: Select all
If OpenWindow(0,400,300,400,300,"Test UTF8",#PB_Window_SystemMenu)
TextGadget(0, 10, 10,380,25,"Gadget texte standard (texte aligné à gauche)")
TextGadget(1, 10, 40,380,25,"Gadget texte (texte aligné à droite)", #PB_Text_Right)
TextGadget(2, 10, 70,380,25,"Gadget texte (texte centré)",#PB_Text_Center)
TextGadget(3, 10,100,380,25,"Gadget texte avec bordure",#PB_Text_Border)
TextGadget(4, 10,130,380,25,"Gadget texte (texte centré) + bordure", #PB_Text_Center | #PB_Text_Border)
Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf
Code: Select all
If OpenWindow(0,400,300,400,300,"Test Text brute",#PB_Window_SystemMenu)
TextGadget(0, 10, 10,380,25,"Gadget texte standard (texte aligné à gauche)")
TextGadget(1, 10, 40,380,25,"Gadget texte (texte aligné à droite)", #PB_Text_Right)
TextGadget(2, 10, 70,380,25,"Gadget texte (texte centré)",#PB_Text_Center)
TextGadget(3, 10,100,380,25,"Gadget texte avec bordure",#PB_Text_Border)
TextGadget(4, 10,130,380,25,"Gadget texte (texte centré) + bordure", #PB_Text_Center | #PB_Text_Border)
Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf
PB 5.73 LTS x64
Ubuntu 21.04 x64
Workaround always save your source code in Plain text format.
Best regards
StarBootics