Vote UpVote

Delphi – HIGHCHARUNICODE directive (Delphi) – RAD Studio

The Wiert Corner – I forgot about it, but this thread reminded be about the differences between these two character values. Quoting from the first post: c1 := #128; c2 := chr(128); Assert(c1 = c2); the assertion fails, meaning that c1 <> c2. In fact c1 = #$20AC and c2 = #$80. Since Chr is a pseudo-function that does a conversion from an integer to a Unicode character, c2 ends up as Unicode codepoint u+0080, whereas c1 gets converted from the AnsiChar 0×80 (the Euro Sign in a lot of Ansi codepages) into Unicode codepoint U+20AC. Allen Bauer correctly mentioned that in order to define a character ...
Favorite? Off-Topic? jpluimers @ 2010-01-18 10:30


Visits: 548
Votes: 3
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Charles Ardour
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)