The Unicode build of the library is optional (and only enabled using the preprocessor directive
USE_UCS4). Currently, this only works with Gfortran. It doesn’t yet work with the Intel Fortran Compiler, which is lagging behind on Unicode support. The Fortran standard supports Unicode via the
selected_char_kind function, which can be used to specify the character set used for a character string, like so:
integer,parameter :: u = selected_char_kind('ISO_10646') character(kind=u,len=11) :: string = u_'Hello World'