Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-11

ASCII - IBM's (old) extended character set

4 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

Does Lazarus have a unicode conversion table for this ASCII character set? See url.

http://www.web-wise-wizard.com/programming/ascii-ibm-extended-character-set.html

As you can see from the url, the characters below Char(32) is very different to standard ASCII table or the ASCII table with CodePage 437.

I'm reading old binary data files that used the IBM Extended ASCII characters in text content. At the moment I simply do a the following to replace certain characters. For example, what we know as the standard ascii (bell character), was the a bullet character.

  s := StringReplace(s, Char(7),'?', [rfReplaceAll, rfIgnoreCase]);

Times have changed! I remember those smiley face characters in a old pac-man game I used to play. :-)

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

David W Noon
to Graeme Geldenhuys

On Wed, 04 Nov 2009 16:48:47 +0200, Graeme Geldenhuys wrote about [Lazarus] ASCII - IBM's (old) extended character set:

[snip]

As you can see from the url, the characters below Char(32) is very different to standard ASCII table or the ASCII table with CodePage 437.

In the days before wide National Language Support, IBM and M$ shipped PC-DOS and MS-DOS, respectively, with two code pages: 437 and 850. These pre-dated the ISO standard for these character sets. However, iconv (and many other conversion utilities) still supports them as code pages IBM437 and IBM850, as distinct from CP437 and CP850.

Regards, Dave [RLU #314465] ======================================================================= (David W Noon) =======================================================================

Reply by email

Paul Nicholls
to Graeme Geldenhuys: Does Lazarus have a unicode conversion table for this ASCII character set? See url.…

----- Original Message -----

Earlier message 37 lines
From: "Graeme Geldenhuys" To: "Lazarus mailing list" Sent: Thursday, November 05, 2009 1:48 AM Subject: [Lazarus] ASCII - IBM's (old) extended character set > Hi, > > Does Lazarus have a unicode conversion table for this ASCII character > set? See url. > > http://www.web-wise-wizard.com/programming/ascii-ibm-extended-character-set.html > > As you can see from the url, the characters below Char(32) is very > different to standard ASCII table or the ASCII table with CodePage 437. > > I'm reading old binary data files that used the IBM Extended ASCII > characters in text content. At the moment I simply do a the following to > replace certain characters. For example, what we know as the standard > ascii (bell character), was the a bullet character. > > s := StringReplace(s, Char(7),'?', [rfReplaceAll, rfIgnoreCase]); > > > Times have changed! I remember those smiley face characters in a old > pac-man game I used to play. :-) > > > Regards, > - Graeme - Hi Graeme, I don't know if it helps, but the Windows font "Terminal" contains exactly all those 255 ASCII characters... cheers, Paul

Reply by email