Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
FPJson and UTF-8
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
How can I get names of CO...
by
marcov
[
Today
at 03:53:38 pm]
[Closed]Indy10 hangs the ...
by
marcov
[
Today
at 03:52:59 pm]
FPC Unleashed (async/awai...
by
creaothceann
[
Today
at 03:15:08 pm]
Slow app start on M5 MacB...
by
pleumann
[
Today
at 03:07:54 pm]
Review from FreePascal
by
threedslider
[
Today
at 02:39:31 pm]
Lazarus components
by
threedslider
[
Today
at 02:37:23 pm]
Many recent books on Laza...
by
threedslider
[
Today
at 02:27:45 pm]
[Solved]Setting the CURSO...
by
jamie
[
Today
at 11:33:52 am]
Network drop and firewall
by
LeP
[
Today
at 09:58:07 am]
Lazarus for Windows on aa...
by
Thaddy
[
Today
at 09:39:06 am]
FastCGI vs. CGI
by
egsuh
[
Today
at 06:33:08 am]
I have made some progress...
by
onionmixer
[
Today
at 12:32:08 am]
Lazarus Bugfix Release 4....
by
n7800
[July 19, 2026, 10:59:09 pm]
Can not load postgres cli...
by
martinm
[July 19, 2026, 10:17:31 pm]
Gtk3 widgetset - call for...
by
zeljko
[July 19, 2026, 08:21:54 pm]
an error occurred while c...
by
Seenkao
[July 19, 2026, 07:29:14 pm]
RichMemo and GTK3
by
dsiders
[July 19, 2026, 05:15:45 pm]
Desktop Shortcut
by
J-G
[July 19, 2026, 04:49:33 pm]
ProDAW
by
jamie
[July 19, 2026, 04:14:20 pm]
Which quantized model wor...
by
LeP
[July 19, 2026, 04:12:28 pm]
[ANN] fpGUI Toolkit v2.1....
by
cdbc
[July 19, 2026, 01:41:07 pm]
Ask AI to make fast HEX t...
by
paweld
[July 19, 2026, 01:23:08 pm]
Isn’t this funny?
by
backprop
[July 19, 2026, 12:25:46 pm]
Windows Installer with FP...
by
Martin_fr
[July 19, 2026, 07:42:28 am]
GTK3 is now the default w...
by
dbannon
[July 19, 2026, 03:25:30 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: FPJson and UTF-8 (Read 254 times)
Amir61
New Member
Posts: 49
FPJson and UTF-8
«
on:
May 29, 2026, 07:48:14 pm »
Hi,
I am trying to parse jsonl file containing UTF-8 strings and noticing FPJson removing some bytes from the values. Is this a known issue?
I attached a simple example.
Logged
paweld
Hero Member
Posts: 1685
Re: FPJson and UTF-8
«
Reply #1 on:
May 29, 2026, 08:07:20 pm »
Which version of FPC?
Everything works correctly in version 3.2-fixes.
Logged
Best regards / Pozdrawiam
paweld
Amir61
New Member
Posts: 49
Re: FPJson and UTF-8
«
Reply #2 on:
May 29, 2026, 08:19:45 pm »
I am using $ fpc
Free Pascal Compiler version 3.2.2 [2024/09/11] for aarch64
Logged
ALLIGATOR
Sr. Member
Posts: 457
I use FPC [main] 💪🐯💪
Re: FPJson and UTF-8
«
Reply #3 on:
May 30, 2026, 05:20:52 am »
FPC [git main]:
Code: Pascal
[Select]
[+]
[-]
===
Testing fpjson UTF
-
8
Handling
===
Original JSON bytes
:
7B
22
76
65
6E
75
65
22
3A
20
22
43
C2 B3
50
22
2C
20
22
74
69
74
6C
65
22
3A
20
22
54
65
73
74
22
7D
Venue
in
JSON
(
20
bytes from "venue"
)
:
22
76
65
6E
75
65
22
3A
20
22
43
C2 B3
50
22
2C
20
22
74
69
Parsing JSON
with
fpjson
...
fpjson
returned venue
:
"CВ?P" bytes
:
43
C2 B3
50
Expected
:
43
C2 B3
50
(
C
+
C2B3
[
┬│
]
+
P
)
If
bug exists
,
fpjson drops C2
,
leaving
:
43
B3
50
No bug
:
fpjson correctly preserved all UTF
-
8
bytes
Logged
I may seem rude - please don't take it personally
Amir61
New Member
Posts: 49
Re: FPJson and UTF-8
«
Reply #4 on:
May 30, 2026, 05:24:07 am »
Yes! I can confirm it works fine with the newer version (including fpc built form git).
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
FPJson and UTF-8
TinyPortal
© 2005-2018