Recent

Author Topic: Character variables and other languages [SOLVED]  (Read 3000 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 14364
  • Sensorship about opinions does not belong here.
Re: Character variables and other languages [SOLVED]
« Reply #15 on: May 08, 2021, 03:34:40 pm »
Not wrong it is UTF8 again.. Which takes 4 bytes...
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5469
  • Compiler Developer
Re: Character variables and other languages [SOLVED]
« Reply #16 on: May 08, 2021, 03:54:57 pm »
AnsiChar and WideChar don't support UTF-8 by themself. If you want to assign a UTF-8 sequence that results in 3 or 4 Byte the left side must be a string type. A UTF-8 sequence that results in 1 Byte can be assigned to both AnisChar and WideChar. A UTF-8 sequence that results in 2 Byte can be assigned to a WideChar.

 

TinyPortal © 2005-2018