Page 1 of 1

Accented Characters (French)

Posted: Sun Aug 10, 2025 11:29 am
by jak64
Accented Characters (French)

Hello everyone,
I'm delighted to be back on the forum because I'm going to learn something new!
Here's my problem:
I'm creating a PureBasic program to create a .csv file to open with LibreOffice. However, the accented characters (I'm French, and there are accented characters in French, for example, é, è, à, ù, or the c cedilla (ç), etc.) are not displayed correctly.

When I open the file created with LibreOffice, the accented characters are incorrect! I tried using #PB-UTF8, #PB_ASCII, #PB_UNICODE, but nothing works!

Thank you for your help.

Re: Accented Characters (French)

Posted: Sun Aug 10, 2025 11:48 am
by DarkDragon
CSV has no encoding information. You need to choose the correct encoding in libreoffice, manually, too.

Re: Accented Characters (French)

Posted: Sun Aug 10, 2025 11:56 am
by Little John
... and save your data in the CSV file preferably in UTF-8 format.

Re: Accented Characters (French)

Posted: Sun Aug 10, 2025 12:06 pm
by jak64
Hello,
Thanks DarkDragon and Little John, I'm so stupid, it's when I open the csv file that I have to choose UTF-8 (UTF-7 is the default in my version of LibreOffice).