Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] Dynapdf and euro (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Next thread: [MBS] Successive calls of WindowsDiskChangeMBS


[MBS] Successive calls of WindowsDiskChangeMBS   -   Jean-Luc Arnaud
  [MBS] Dynapdf and euro   -   Giulio Mastrosanti
   Re: [MBS] Dynapdf and euro   -   Giulio Mastrosanti
    Re: [MBS] Dynapdf and euro   -   Christian Schmitz

[MBS] Dynapdf and euro
Date: 24.02.17 16:39 (Fri, 24 Feb 2017 16:39:16 +0100)
From: Giulio Mastrosanti
Hi all,

I have a console application on a Unix server that prints invoices.

all is working fine except for the euro symbol, that’s printed as garbage.

I point the library to a folder with Arial font variations:

call pdf.AddFontSearchPath(getfolderitem("").child("fonts"), false)

maybe could be the .ttf files the problem or something else?

other special chars, such as accented chars or % symbol does not present problems

thank you

Giulio

- - - - - - - - - - - - - - - - - - - - - - -
BitBazar Srl
Via Andrea Doria, 57
00192 Roma
tel +39 0639737052
tel +39 0639725787
http://www.bitbazar.com
- - - - - - - - - - - - - - - - - - - - - - -

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Dynapdf and euro
Date: 24.02.17 16:49 (Fri, 24 Feb 2017 16:49:00 +0100)
From: Giulio Mastrosanti
HI,

it’s me again, solved.

the euro symbol was in a database string, that I was reading without an appropriate defineencoding.

I imagine that this is a punishment for being lazy to learn and use the new framework, with its text object

sorry for the annoyance,

Giulio

> Il giorno 24 feb 2017, alle ore 16:39, Giulio Mastrosanti <<email address removed>> ha scritto:
>
> Hi all,
>
> I have a console application on a Unix server that prints invoices.
>
> all is working fine except for the euro symbol, that’s printed as garbage.
>
> I point the library to a folder with Arial font variations:
>
> call pdf.AddFontSearchPath(getfolderitem("").child("fonts"), false)
>
> maybe could be the .ttf files the problem or something else?
>
> other special chars, such as accented chars or % symbol does not present problems
>
> thank you
>
> Giulio
>
> - - - - - - - - - - - - - - - - - - - - - - -
> BitBazar Srl
> Via Andrea Doria, 57
> 00192 Roma
> tel +39 0639737052
> tel +39 0639725787
> http://www.bitbazar.com
> - - - - - - - - - - - - - - - - - - - - - - -
>
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> <email address removed>
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Dynapdf and euro
Date: 24.02.17 17:19 (Fri, 24 Feb 2017 17:19:38 +0100)
From: Christian Schmitz

> Am 24.02.2017 um 16:49 schrieb Giulio Mastrosanti <<email address removed>>:
>
> HI,
>
> it’s me again, solved.
>
> the euro symbol was in a database string, that I was reading without an appropriate defineencoding.
>
> I imagine that this is a punishment for being lazy to learn and use the new framework, with its text object

Well, the DynaPDFMBS class has a property ValidateTextEncodings. Set it to true while debugging, and the plugin will raise an exception so you see when you pass text without known encoding.

I recommend setting this for every project:

ValidateTextEncodings = DebugBuild


For other cases, the plugin will assume Windows or MacRoman encoding for strings without encoding.
This way ASCII text will simply work.
I could add an UTF8 detect there.

Sincerely
Christian