Recent

Author Topic: Length of accented words  (Read 6679 times)

typo

  • Hero Member
  • *****
  • Posts: 3051
Length of accented words
« on: March 05, 2010, 04:33:49 pm »
Do you know any way to get the correct length of accented words? Length('não') results 4.
« Last Edit: March 05, 2010, 04:38:10 pm by typo »

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1946
Re: Length of accented words
« Reply #1 on: March 05, 2010, 04:44:12 pm »
Do you know any way to get the correct length of accented words? Length('não') results 4.

You have asked this before:
http://forum.lazarus.freepascal.org/index.php/topic,8742.0.html

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Length of accented words
« Reply #2 on: March 05, 2010, 04:50:30 pm »
But I had no answer.

Bart

  • Hero Member
  • *****
  • Posts: 5713
    • Bart en Mariska's Webstek
Re: Length of accented words
« Reply #3 on: March 05, 2010, 11:27:15 pm »
Theo did.

Bart

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1946
Re: Length of accented words
« Reply #4 on: March 06, 2010, 11:20:27 am »
But I had no answer.

?

Q: What function should I use to get the correct length of a text in UTF8?
A: unit LCLProc UTF8Length
« Last Edit: March 06, 2010, 11:22:09 am by theo »

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Length of accented words
« Reply #5 on: March 06, 2010, 11:54:25 am »
Sorry.

 

TinyPortal © 2005-2018