Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
[Solved] TPdfDoc and special characters
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
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
How to declare uninitiali...
by
Thaddy
[
Today
at 08:01:01 am]
Component and GPL
by
paule32
[
Today
at 07:57:51 am]
Question about OOP : hidi...
by
440bx
[
Today
at 07:33:54 am]
Number 3.2 is not dead - ...
by
Thaddy
[
Today
at 07:11:59 am]
some subtle issue with Wi...
by
Thaddy
[
Today
at 07:10:05 am]
How to Build a Hierarchy ...
by
DavidAM
[
Today
at 03:34:58 am]
Changes in form/datamodul...
by
dsiders
[
Today
at 03:33:06 am]
How to move controls on a...
by
jamie
[April 09, 2024, 11:32:53 pm]
AV during runtime, becaus...
by
Leledumbo
[April 09, 2024, 10:47:00 pm]
BGLFont with multiple lab...
by
circular
[April 09, 2024, 10:34:24 pm]
Have anyone know how to h...
by
Leledumbo
[April 09, 2024, 10:29:16 pm]
Working with string split...
by
Leledumbo
[April 09, 2024, 10:20:31 pm]
2D Starfield with BGRA co...
by
Gigatron
[April 09, 2024, 10:08:44 pm]
search and replace richme...
by
KodeZwerg
[April 09, 2024, 10:06:46 pm]
How can I draw a rectangl...
by
TRon
[April 09, 2024, 09:10:41 pm]
dbRichMemo
by
rcmz
[April 09, 2024, 07:21:50 pm]
LazBarcodes PDF417 bug
by
dseligo
[April 09, 2024, 04:43:12 pm]
Form inheritance - any ch...
by
maxerist
[April 09, 2024, 04:27:47 pm]
Revert ignoring exception...
by
Weitentaaal
[April 09, 2024, 04:09:44 pm]
Script engine and debuggi...
by
jakubokaj
[April 09, 2024, 02:35:40 pm]
Lazarus can't compile and...
by
bbrx
[April 09, 2024, 01:52:24 pm]
fpVectorial 32 Bit and PD...
by
Weitentaaal
[April 09, 2024, 12:57:02 pm]
Hide application icon in ...
by
Fantablup
[April 09, 2024, 12:43:57 pm]
Smaller executable Raspbi...
by
ccrause
[April 09, 2024, 12:17:19 pm]
Minkowski Island: Fill co...
by
Boleeman
[April 09, 2024, 12:15:32 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [Solved] TPdfDoc and special characters (Read 689 times)
cpalx
Hero Member
Posts: 753
[Solved] TPdfDoc and special characters
«
on:
September 19, 2019, 03:59:56 pm »
I try to do this:
MyPDFDOC.Canvas.TextOut( 75,75, 'El día de hoy' );
and when i see the final PDF, the character " í " doesnt display, instead of appers garbage characters
Any idea how to solve?
«
Last Edit: September 19, 2019, 04:40:42 pm by cpalx
»
Logged
jujibo
Full Member
Posts: 116
Re: TPdfDoc and special characters
«
Reply #1 on:
September 19, 2019, 04:29:21 pm »
I guess you are talking about PowerPDF.
You must convert string to cp1252 codepage.
https://lazarus-ccr.sourceforge.io/docs/lazutils/lconvencoding/utf8tocp1252.html
Try:
MyPDFDOC.Canvas.TextOut( 75,75, UTF8ToCP1252('El día de hoy'));
Logged
cpalx
Hero Member
Posts: 753
Re: TPdfDoc and special characters
«
Reply #2 on:
September 19, 2019, 04:40:19 pm »
Thanks, it solves the problem
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
[Solved] TPdfDoc and special characters
TinyPortal
© 2005-2018