View previous topic :: View next topic |
Author |
Message |
Zach
Joined: 13 Mar 2023 Posts: 83 Location: Groningen, Netherlands
|
Posted: Mon May 22, 2023 3:10 am Post subject: Country coding in Fortran |
|
|
How to inoculate text-writing to enable it to deal with special language dependant characters, like those used in the French language? I believe it is called text culture setting. Without it, text in some spoken languages, gets invested by funny unwanted squiggles. |
|
Back to top |
|
 |
PaulLaidler Site Admin

Joined: 21 Feb 2005 Posts: 7637 Location: Salford, UK
|
Posted: Mon May 22, 2023 7:43 am Post subject: |
|
|
Please see http://forums.silverfrost.com/viewtopic.php?t=3937&highlight=utf8 on this forum.
Also search for UTF-8 in the FTN95 help file where you will find...
ClearWin+ can display UTF-8 multi-byte characters. Fortran programs use standard CHARACTER variables to hold the UTF-8 encoded character strings. These should be written into files that are saved using Code Page 65001 "UNICODE (UTF-8 without signature)". See for example "Advanced Save Options" in Plato. It is important to omit the signature otherwise FTN95 will not compile the file.
A new subroutine informs the ClearWin+ library that UTF-8 characters may be included.
SUBROUTINE ENABLE_UTF8@(enable)
INTEGER enable
'enable' is an input value set to a non-zero value to enable UTF-8 encoding or zero to disable. The default state is OFF. |
|
Back to top |
|
 |
Zach
Joined: 13 Mar 2023 Posts: 83 Location: Groningen, Netherlands
|
Posted: Tue May 23, 2023 5:39 pm Post subject: |
|
|
Re your reference
"File does not exist"
And if one does not use ClearWin+ ? Live with the squiggles? |
|
Back to top |
|
 |
PaulLaidler Site Admin

Joined: 21 Feb 2005 Posts: 7637 Location: Salford, UK
|
Posted: Tue May 23, 2023 7:03 pm Post subject: |
|
|
Zach
You should be able to just click on the link.
It will take you to code that does not use ClearWin+.
Alternatively search for the word "Cyrillic" on this forum. |
|
Back to top |
|
 |
|