forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Country coding in Fortran

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
Zach



Joined: 13 Mar 2023
Posts: 83
Location: Groningen, Netherlands

PostPosted: Mon May 22, 2023 3:10 am    Post subject: Country coding in Fortran Reply with quote

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
View user's profile Send private message Send e-mail
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7637
Location: Salford, UK

PostPosted: Mon May 22, 2023 7:43 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Zach



Joined: 13 Mar 2023
Posts: 83
Location: Groningen, Netherlands

PostPosted: Tue May 23, 2023 5:39 pm    Post subject: Reply with quote

Re your reference
"File does not exist"
And if one does not use ClearWin+ ? Live with the squiggles?
Back to top
View user's profile Send private message Send e-mail
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7637
Location: Salford, UK

PostPosted: Tue May 23, 2023 7:03 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group