[fpc-pascal] Unicode characters in source code

Graeme Geldenhuys graemeg.lists at gmail.com
Wed Apr 21 10:38:55 CEST 2010


If I want to use Unicode characters in my source code, but without actually
typing in the Unicode character - I rather want to define it similar to
ASCII chars or Hex values:
  eg:  Char(65)    or   'test'+#65+'me'
      or similar to what hex values are defined with a dollar prefix: $30

Any idea how I can do this? I don't want to mess with the -Fcutf8 compiler
parameter if I can avoid it. I also want the ability of the source code to
be edited by a editor that might not support Unicode (more precisely UTF-8).

Is this possible?

  - Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

More information about the fpc-pascal mailing list