<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ASCII Character Codes in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ASCII-Character-Codes/m-p/784672#M29476</link>
    <description>Within your source code, you can type extended characters if the current script of the source font contains them. You can set the font using Tools/Options/Format/Source Windows/Font. You have to choose font script for one code page (as source files are not UNICODE). For example, on my computer I see "CE", "Cyr", and "Greek" versions of Courier New. This setting only affects characters 128-255, as the first 128 are always the same (ASCII) for every code page.&lt;BR /&gt;&lt;BR /&gt;As for the output, it's trickier. Have in mind that whatever you write into a file is just a sequence of bytes... and bytes can have only values 0-255. For example, big Greek letter Sigma has unicode value of 0x3A3, but in Greek code page it is mapped to position 211 (0xD3). So, the question is not "whether I can display Sigma in a text file?", but "what should I do to have 211 interpreted as Sigma?". So, if you open the file containing that 211 in editor with e.g. Courier New Greek font, you'll see Sigma; if it's Courier New Western, you'll see E grave (); on Central European, it's C Caron etc.&lt;BR /&gt;&lt;BR /&gt;See also this little program which uses SetConsoleOutputCP API to change console code page, then displays characters 128-255 in four different scripts. It works on Windows 2000, as it's Unicode under the hub (I doubt it will work on 9x/ME) and only if the console output font is set to a Unicode font (Lucida Console e.g.)&lt;BR /&gt;&lt;PRE&gt;Program CodePage
   Use Kernel32
   Use User32
   Implicit None
   Character*129 Text
   Integer*4 iCodePage, iRet
   Logical*4 lRet
   integer i

   do i = 128,255
      text(i-127:i-127) = char(i)
   end do
   do iCodePage = 1250, 1253
      iRet = SetConsoleOutputCP(iCodePage)
      If ( iRet .gt. 0 ) Then
         Write (*,"(' CodePage=',i6)") iCodePage
         write(*,"(A)") text
      End If
   End do
End Program CodePage&lt;/PRE&gt;Actually, SetConsoleOutputCP affects the script of the font used to display console text. Default bitmapped font (Terminal) does not support scripts.&lt;BR /&gt;&lt;BR /&gt;Jugoslav&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 02 Oct 2003 20:55:33 GMT</pubDate>
    <dc:creator>Jugoslav_Dujic</dc:creator>
    <dc:date>2003-10-02T20:55:33Z</dc:date>
    <item>
      <title>ASCII Character Codes</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ASCII-Character-Codes/m-p/784669#M29473</link>
      <description>Is there a way to use the extended ASCII Character Codes (128-255) within CVF 6.0 and within program output?  I am interested in using some of the greek symbols.  Thanks for any advice.</description>
      <pubDate>Thu, 02 Oct 2003 05:09:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ASCII-Character-Codes/m-p/784669#M29473</guid>
      <dc:creator>bbeyer</dc:creator>
      <dc:date>2003-10-02T05:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: ASCII Character Codes</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ASCII-Character-Codes/m-p/784670#M29474</link>
      <description>Program output to where? Console? Dialog? Window?&lt;BR /&gt;&lt;BR /&gt;Jugoslav</description>
      <pubDate>Thu, 02 Oct 2003 15:08:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ASCII-Character-Codes/m-p/784670#M29474</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2003-10-02T15:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: ASCII Character Codes</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ASCII-Character-Codes/m-p/784671#M29475</link>
      <description>I am trying to use these extended characters in formatted text output written to files, as well as in the comments within the source code itself within the text editor of CVF.</description>
      <pubDate>Thu, 02 Oct 2003 19:33:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ASCII-Character-Codes/m-p/784671#M29475</guid>
      <dc:creator>bbeyer</dc:creator>
      <dc:date>2003-10-02T19:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: ASCII Character Codes</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ASCII-Character-Codes/m-p/784672#M29476</link>
      <description>Within your source code, you can type extended characters if the current script of the source font contains them. You can set the font using Tools/Options/Format/Source Windows/Font. You have to choose font script for one code page (as source files are not UNICODE). For example, on my computer I see "CE", "Cyr", and "Greek" versions of Courier New. This setting only affects characters 128-255, as the first 128 are always the same (ASCII) for every code page.&lt;BR /&gt;&lt;BR /&gt;As for the output, it's trickier. Have in mind that whatever you write into a file is just a sequence of bytes... and bytes can have only values 0-255. For example, big Greek letter Sigma has unicode value of 0x3A3, but in Greek code page it is mapped to position 211 (0xD3). So, the question is not "whether I can display Sigma in a text file?", but "what should I do to have 211 interpreted as Sigma?". So, if you open the file containing that 211 in editor with e.g. Courier New Greek font, you'll see Sigma; if it's Courier New Western, you'll see E grave (); on Central European, it's C Caron etc.&lt;BR /&gt;&lt;BR /&gt;See also this little program which uses SetConsoleOutputCP API to change console code page, then displays characters 128-255 in four different scripts. It works on Windows 2000, as it's Unicode under the hub (I doubt it will work on 9x/ME) and only if the console output font is set to a Unicode font (Lucida Console e.g.)&lt;BR /&gt;&lt;PRE&gt;Program CodePage
   Use Kernel32
   Use User32
   Implicit None
   Character*129 Text
   Integer*4 iCodePage, iRet
   Logical*4 lRet
   integer i

   do i = 128,255
      text(i-127:i-127) = char(i)
   end do
   do iCodePage = 1250, 1253
      iRet = SetConsoleOutputCP(iCodePage)
      If ( iRet .gt. 0 ) Then
         Write (*,"(' CodePage=',i6)") iCodePage
         write(*,"(A)") text
      End If
   End do
End Program CodePage&lt;/PRE&gt;Actually, SetConsoleOutputCP affects the script of the font used to display console text. Default bitmapped font (Terminal) does not support scripts.&lt;BR /&gt;&lt;BR /&gt;Jugoslav&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Oct 2003 20:55:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ASCII-Character-Codes/m-p/784672#M29476</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2003-10-02T20:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: ASCII Character Codes</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ASCII-Character-Codes/m-p/784673#M29477</link>
      <description>Thanks for your help Jugoslav.</description>
      <pubDate>Mon, 06 Oct 2003 20:37:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ASCII-Character-Codes/m-p/784673#M29477</guid>
      <dc:creator>bbeyer</dc:creator>
      <dc:date>2003-10-06T20:37:06Z</dc:date>
    </item>
  </channel>
</rss>

