Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.fortran    |    Putting John Backus on a giant pedestal    |    5,127 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 4,752 of 5,127    |
|    Lynn McGuire to Steven G. Kargl    |
|    Re: Upcoming gfortran 15 will contain un    |
|    15 Oct 24 16:51:32    |
   
   From: lynnmcguire5@gmail.com   
      
   On 10/15/2024 3:46 PM, Steven G. Kargl wrote:   
   > On Tue, 15 Oct 2024 15:26:42 -0500, Lynn McGuire wrote:   
   >   
   >>   
   >> Any plans to support UTF16 or UTF8 in gfortran ?   
   >>   
   >   
   > gfortran has supported UTF-8 for long time now. Here's   
   > an example from the manual.   
   >   
   >   
   > program character_kind   
   > use iso_fortran_env   
   > implicit none   
   > integer, parameter :: ascii = selected_char_kind ("ascii")   
   > integer, parameter :: ucs4 = selected_char_kind ('ISO_10646')   
   >   
   > character(kind=ascii, len=26) :: alphabet   
   > character(kind=ucs4, len=30) :: hello_world   
   >   
   > alphabet = ascii_"abcdefghijklmnopqrstuvwxyz"   
   > hello_world = ucs4_'Hello World and Ni Hao -- ' &   
   > // char (int (z'4F60'), ucs4) &   
   > // char (int (z'597D'), ucs4)   
   >   
   > write (*,*) alphabet   
   >   
   > open (output_unit, encoding='UTF-8')   
   > write (*,*) trim (hello_world)   
   > end program character_kind   
      
   Thanks !   
      
   Lynn   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca