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
[New Component] ExtTabCtr...
by
ovidio
[
Today
at 05:35:15 pm]
AArch64. Fast method to c...
by
Thaddy
[
Today
at 05:12:23 pm]
Notetask 1.1.4 - Free cro...
by
AlexanderT
[
Today
at 04:55:38 pm]
is there a Base 26 / Radi...
by
Thaddy
[
Today
at 04:31:02 pm]
Knigo
by
Roland57
[
Today
at 03:57:16 pm]
Pixie: A lightweight HTML...
by
Tomxe
[
Today
at 01:48:30 pm]
TstringGrid read cell col...
by
rnervi
[
Today
at 01:20:27 pm]
EasyLazFreeType Bug?
by
Tommi
[
Today
at 10:57:47 am]
embed .jpg file into .pp ...
by
Thaddy
[
Today
at 09:51:38 am]
Call SetLength from assem...
by
Thaddy
[
Today
at 09:00:36 am]
Lazarus Main and Gnome/Wa...
by
robert rozee
[
Today
at 08:57:55 am]
TPlaysound problem Ubuntu...
by
jamie
[
Today
at 12:57:32 am]
Portable verion of FPC an...
by
Martin_fr
[
Today
at 12:26:26 am]
Release ray4laz 6.0
by
lazarusprogrammer
[June 07, 2026, 08:02:14 pm]
Where is Lazarus config
by
n7800
[June 07, 2026, 07:49:03 pm]
Auto-vectorization hint/w...
by
Ten_Mile_Hike
[June 07, 2026, 07:31:42 pm]
Splitting Picture into Qu...
by
Dzandaa
[June 07, 2026, 06:16:22 pm]
Lazarus 4.99 - New featur...
by
Martin_fr
[June 07, 2026, 05:46:05 pm]
FPC Unleashed (inline var...
by
Thaddy
[June 07, 2026, 05:27:05 pm]
GDB 17 for Windows
by
Martin_fr
[June 07, 2026, 04:45:35 pm]
Hint not being shown
by
J-G
[June 07, 2026, 03:34:25 pm]
UnoLib - library in Pasca...
by
ackarwow
[June 07, 2026, 02:16:15 pm]
Very rough version of a s...
by
hedgehog
[June 07, 2026, 08:24:00 am]
water filling simulation
by
ADMGNS
[June 06, 2026, 09:54:50 pm]
Array of structure -> str...
by
Seenkao
[June 06, 2026, 09:44:44 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: FPJson and UTF-8 (Read 232 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: 1638
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: 434
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