[fpc-pascal]How to display special characters

Juha Nevalainen nevalainenjuha at hotmail.com
Tue Mar 19 19:42:03 CET 2002


That helps a lot, many thanks.  That is exactly my problem (using Windows 
GUI editor while porting a command window application).  If I wanted to 
maintain original text readability (there is lots of text with lots of 
specials chars in this program), the only way then is to switch back to text 
mode editor then, right?

How about printing - is that all in ISO-8859-1 too?   Will I need
the Windows character sequences for that part then?

Cheers
Juha




>From: Rich Pasco <pasco at acm.org>
>Reply-To: fpc-pascal at deadlock.et.tudelft.nl
>To: fpc-pascal at deadlock.et.tudelft.nl
>Subject: Re: [fpc-pascal]How to display special characters
>Date: Tue, 19 Mar 2002 10:17:33 -0800
>
>Codepages 437 and 850 are the DOS characters used in a command-shell
>window.  Codepage ISO-8859-1 is the Windows character set used in
>Windows GUI applications.  You can get into trouble if you use a
>Windows GUI editor for source code for applications that will run
>in a command-shell window, or vice versa.
>
>For example, e-acute is #$82 in codepages 437 and 850, but #$E9 in
>codepage ISO-8859-1.  If you wanted to write the Spanish word "olé"
>in a command-shell application, you would write "ol"+#$82, but for
>a windows-GUI application you would write "ol"+#$E9.
>
>For another example, a-umlaut is #$84 in codepages 437 and 850, but
>#$E4 in codepage ISO-8859-1.  If you wanted to write the German word
>"spät" in a command-shell application, you would write "sp"+#$84+"t",
>but for a windows-GUI application you would write "sp"+#$E4+"t".
>
>I hope this helps.
>
>      - Rich
>
>
>Juha Nevalainen wrote:
>
> > Sorry to bother you with trivial newbie question
> > but the links to the archives seem broken right now.
> >
> > How can I display special characters outside the standard
> > A-Z range in the WIN32 environment?
> >
> > I am using
> >
> >     writeln('some strange chars like ä, ö etc');
> >
> > but it displays other characters instead. Those above are ascii
> > codes 132 and 148 in case you wondered or they dont dislay correctly.
> >
> > I have codepage 850 active.  Any suggestions?
>
>_______________________________________________
>fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
>http://lists.freepascal.org/mailman/listinfo/fpc-pascal




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com





More information about the fpc-pascal mailing list