Delphi 7 (Console) Outputting a Unicode Character?

Associate
Joined
6 Jul 2008
Posts
53
EDIT: Nevermind, if you use WriteLn(Chr(156)) it works, thanks anyway to anyone who looked.


Hey All,

I haven't ever used Pascal/Delphi before but that's unfortunately what they're teaching at school, I have a slight problem though, I need to output a pound sign '£' to the console that displays correctly (at the very least) in the Lucida Console font. Problem is, if you just:

Code:
WriteLn("£");
you get an accented 'u'.

I need to use the Unicode (U+00A3) which should output the character correctly, but I don't know how to output "U+00A3" as a unicode character in delphi. Is it even possible?

Any help would be appreciated,

Thanks in advance.
 
Last edited:
Back
Top Bottom