Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get len from string containing extended ASCII characters
#3
_s.len gets length in bytes, not characters. Character '─' is 3 bytes. If need length in characters, the easiest but not fastest way is to convert the string to UTF-16.

Code:
Copy      Help
_s="───────"
out _s.len
BSTR b=_s
out b.len


Messages In This Thread
RE: Get len from string containing extended ASCII characters - by Gintaras - 08-20-2023, 01:36 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)