Recent

Author Topic: Using UTF8  (Read 719 times)

ADMGNS

  • Jr. Member
  • **
  • Posts: 81
  • keep it simple and smart
Re: Using UTF8
« Reply #15 on: August 06, 2026, 10:25:08 am »
hello

Quote
What happens if you change to other font instead default or change those character codes?

yes, i've just tried using some other fonts, including Windows fonts like Verdana, Trebushet, Segoe UI, etc, the results are same.

maybe it's a mystery problem we dont know yet ;)

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1309
Re: Using UTF8
« Reply #16 on: August 06, 2026, 10:54:00 am »
I use Format function all the time. For example:

Code: Pascal  [Select][+][-]
  1.   Button1.Caption := Format('%s Undo', [#$E10E]);
  2.   Button2.Caption := Format('%s Cut', [#$E16B]);
  3.   Button3.Caption := Format('%s Copy', [#$E16F]);
  4.   Button4.Caption := Format('%s Paste', [#$E16D]);
  5.   Button5.Caption := Format('%s Delete', [#$E106]);

to produce attached screenshot.

That's brilliant!
Lazarus Trunk/FPC latest fixes on Windows 11
  How to use the forum:  https://wiki.lazarus.freepascal.org/Forum

Xenno

  • Full Member
  • ***
  • Posts: 155
    • BS Programs
Re: Using UTF8
« Reply #17 on: August 06, 2026, 11:03:51 am »
Thank you, @Mike.Cornflake

I've been using it since Delphi 2009. Fortunately it works in Lazarus (for Windows).
Lazarus 4.6, Windows 10, https://www.youtube.com/@bsprograms
If I want to share, I give. If I want money, I sell. I don't set traps.

tetrastes

  • Hero Member
  • *****
  • Posts: 774
Re: Using UTF8
« Reply #18 on: August 06, 2026, 02:55:38 pm »
In fact U+E000..U+F8FF is private use area, and you cannot rely on those glyphs. AFAIK they are presented in Segoe UI Symbol only, which is used by Windows with some fonts of Segoe family (not all).

ADMGNS

  • Jr. Member
  • **
  • Posts: 81
  • keep it simple and smart
Re: Using UTF8
« Reply #19 on: August 06, 2026, 03:04:47 pm »
Quote
What happens if you change to other font instead default or change those character codes?

interesting. it doesnt show clpbrd/edit symbols you've added, but does show other unicode symbols. see attchmnt

which subset are that symbols in?

ADMGNS

  • Jr. Member
  • **
  • Posts: 81
  • keep it simple and smart
Re: Using UTF8
« Reply #20 on: August 06, 2026, 03:16:26 pm »
@tetrastes, you are right.. it is not a solid standard yet

tetrastes

  • Hero Member
  • *****
  • Posts: 774
Re: Using UTF8
« Reply #21 on: August 06, 2026, 03:29:17 pm »
Quote
What happens if you change to other font instead default or change those character codes?

interesting. it doesnt show clpbrd/edit symbols you've added, but does show other unicode symbols. see attchmnt

which subset are that symbols in?

Miscellaneous Technical U+2300..U+23FF
Miscellaneous Symbols and Pictographs U+1F300..U+1F5FF
See f.e. https://symbl.cc/en/unicode-table, very convinient to my mind.

ADMGNS

  • Jr. Member
  • **
  • Posts: 81
  • keep it simple and smart
Re: Using UTF8
« Reply #22 on: August 06, 2026, 06:51:50 pm »
thanks for your sharing, that useful site.

i'd checked via linux gnome charmap application, but i couldnt see these details.

regs

 

TinyPortal © 2005-2018