Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
Text length in UTF8
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Pipewire API
by
backprop
[
Today
at 05:44:44 am]
Any way to "embed" Window...
by
egsuh
[
Today
at 04:31:44 am]
class not found
by
SA.Blackmon
[
Today
at 02:02:29 am]
Extended Module Player
by
Gigatron
[March 11, 2026, 11:33:54 pm]
A collection of daily *NI...
by
Roland57
[March 11, 2026, 06:40:37 pm]
[ANN] PasBuild 1.6.0 rele...
by
cdbc
[March 11, 2026, 05:07:14 pm]
ShortStrings vs long stri...
by
marcov
[March 11, 2026, 03:30:18 pm]
88 year D. Knuth changes ...
by
Curt Carpenter
[March 11, 2026, 03:08:55 pm]
[ANN] PasBuild 1.5.0 rele...
by
Graeme
[March 11, 2026, 02:30:32 pm]
CADSys4 3D.
by
zamtmn
[March 11, 2026, 02:13:31 pm]
Synchronizing Lazarus pro...
by
marcov
[March 11, 2026, 01:09:21 pm]
Need help with project ma...
by
dseligo
[March 11, 2026, 12:12:04 pm]
Debian removes FPC/Lazaru...
by
marcov
[March 11, 2026, 11:58:36 am]
Qt6/Wayland clipboard: pa...
by
zeljko
[March 11, 2026, 11:53:24 am]
Questions about TFuncSeri...
by
hedgehog
[March 11, 2026, 09:50:46 am]
macOS 14+ Install Instruc...
by
CM630
[March 11, 2026, 07:56:45 am]
Update a table with an Au...
by
CraigC
[March 10, 2026, 10:54:23 pm]
TSplitter color property ...
by
backprop
[March 10, 2026, 08:43:28 pm]
Z80 ZX Spectrum and Syste...
by
Cascade
[March 10, 2026, 08:22:14 pm]
could Ardour's YTK be use...
by
robert rozee
[March 10, 2026, 03:18:36 pm]
[revisited] triple click
by
Thaddy
[March 10, 2026, 01:08:40 pm]
Hello! Anything new?
by
JuhaManninen
[March 10, 2026, 11:22:16 am]
C/C++ code to Object Pasc...
by
domasz
[March 10, 2026, 10:44:20 am]
[Solved] Saving a workboo...
by
Kaljakoira
[March 10, 2026, 09:09:59 am]
Good GPU accelerated math...
by
myisjwj
[March 10, 2026, 03:17:06 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Text length in UTF8 (Read 10297 times)
typo
Hero Member
Posts: 3051
Text length in UTF8
«
on:
February 26, 2010, 08:43:52 am »
What function should I use to get the correct length of a text in UTF8?
Thanks.
Logged
LazarusBrasil.Org
theo
Global Moderator
Hero Member
Posts: 1933
Re: Text length in UTF8
«
Reply #1 on:
February 26, 2010, 09:43:14 am »
unit LCLProc UTF8Length
Logged
typo
Hero Member
Posts: 3051
Re: Text length in UTF8
«
Reply #2 on:
February 26, 2010, 09:20:23 pm »
Is there any way to determine if the string is UTF-8 or not?
Logged
LazarusBrasil.Org
typo
Hero Member
Posts: 3051
Re: Text length in UTF8
«
Reply #3 on:
February 26, 2010, 10:41:24 pm »
By the way: Is there any way to set a text format in a SynEdit to all text you load or paste on there?
«
Last Edit: February 26, 2010, 10:43:14 pm by typo
»
Logged
LazarusBrasil.Org
theo
Global Moderator
Hero Member
Posts: 1933
Re: Text length in UTF8
«
Reply #4 on:
February 26, 2010, 11:20:16 pm »
Quote from: typo on February 26, 2010, 09:20:23 pm
Is there any way to determine if the string is UTF-8 or not?
You can try this function in LConvEncoding
if GuessEncoding(s)=EncodingUTF8 then...
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
Text length in UTF8
TinyPortal
© 2005-2018