[fpc-pascal] Unicode characters in source code

ik idokan at gmail.com
Wed Apr 21 10:47:56 CEST 2010


http://ik.homelinux.org/


On Wed, Apr 21, 2010 at 11:38, Graeme Geldenhuys <graemeg.lists at gmail.com>wrote:

> Hi,
>
> 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).
>


$#50D helps you ? :)

You can also break it into two/four bytes like so : #404#500


>
> Is this possible?
>
>
> Regards,
>  - Graeme -
>
> --
> fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
> http://opensoft.homeip.net/fpgui/
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>


Ido
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20100421/6d9330c7/attachment.html>


More information about the fpc-pascal mailing list