Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Encoding=

lklawrie
Beginner
624 Views
The 2003 features list says the Encoding= option is available for Inquire and Open statements.

But what does it do? When I've tried it for Inquire -- all I get is UNKNOWN, regardless of file type.

Linda
0 Kudos
3 Replies
Steven_L_Intel1
Employee
624 Views

On OPEN of a unit for formatted input/output, ENCODING allows you to specify that the file is a UTF-8 (UNICODE) file, if the "processor" supports that, which ours does not at present. On INQUIRE, it asks what the encoding is if it's readable from the file, which on Windows I don't think it is. The only value we support at present is 'DEFAULT'.
0 Kudos
lklawrie
Beginner
624 Views

On OPEN of a unit for formatted input/output, ENCODING allows you to specify that the file is a UTF-8 (UNICODE) file, if the "processor" supports that, which ours does not at present. On INQUIRE, it asks what the encoding is if it's readable from the file, which on Windows I don't think it is. The only value we support at present is 'DEFAULT'.

Two questions:

1) do other platforms (Mac, Linux) have the ability to tell the encoding? (I'm getting a return of UNKNOWN on Windows, regardless of type, I think).

2) is there a way to read unicode files given that we could detect them?

Linda

0 Kudos
Steven_L_Intel1
Employee
624 Views

Not that I know of.
0 Kudos
Reply