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
Object Inspector - Start ...
by
Cascade
[
Today
at 12:42:36 pm]
FPC 3.2.4-rc1 available
by
marcov
[
Today
at 12:28:29 pm]
Elite Arcade
by
trapanator
[
Today
at 11:44:23 am]
Font in StringGrid: canno...
by
paxnet_be
[
Today
at 09:43:08 am]
Lazarus forum incompatibl...
by
Thaddy
[
Today
at 09:17:00 am]
Lazarus and FreePascal on...
by
Thaddy
[
Today
at 07:29:38 am]
FPC Unleashed (inline var...
by
Thaddy
[
Today
at 07:18:31 am]
Status of FPC 3.4.0 or FP...
by
valdir.marcos
[
Today
at 06:00:43 am]
Call the Llama.cpp dynami...
by
myisjwj
[
Today
at 03:46:16 am]
[Ignore-Me] TFPGList.Assi...
by
jamie
[
Today
at 01:38:22 am]
Amigo programming languag...
by
paxscript
[
Today
at 01:06:00 am]
IDE Editor (OS: Windows11...
by
d7_2_laz
[
Today
at 12:38:55 am]
Using Lazarus to teach In...
by
Nimbus
[April 21, 2026, 10:15:31 pm]
Little bit...
by
ASerge
[April 21, 2026, 09:51:32 pm]
CORE-MATH 32bits in Pasca...
by
schuler
[April 21, 2026, 09:32:39 pm]
Fpcupdeluxe
by
Thaddy
[April 21, 2026, 06:12:30 pm]
504 Gateway Timeout
by
Martin_fr
[April 21, 2026, 03:28:06 pm]
Problem with MariaDB and ...
by
OH1KH
[April 21, 2026, 03:26:54 pm]
Feature announcement: Fun...
by
Thaddy
[April 21, 2026, 01:47:33 pm]
IDE Coolbar
by
staratel20
[April 21, 2026, 01:00:32 pm]
Midi to Wav Converter
by
Thaddy
[April 21, 2026, 12:28:47 pm]
Pure Pascal ZPAQ and ZSTD
by
Tomxe
[April 21, 2026, 11:48:23 am]
AmigaOS can't run program...
by
Trenatos
[April 21, 2026, 11:30:22 am]
Space Duel
by
Tomi
[April 21, 2026, 09:18:22 am]
Is there a "known good" c...
by
Thaddy
[April 21, 2026, 08:07:46 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Text length in UTF8 (Read 10326 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: 1946
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: 1946
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