--Hi Qatan,
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users
Thanks for answering.
Didn�t work. I use OEM strings and need to change it to the way PDF
understands it. I am not sure but maybe I should change from OEM to UTF8?
Any hint? Everyone is welcome to help with this.
Regards,
Qatan
----- Original Message -----
From: "David MS" <da...@gesintur.com>
To: "Harbour Users" <harbou...@googlegroups.com>
Sent: Tuesday, 19 de October de 2010 12:56
Subject: [harbour-users] Re: HaruPDF and accented chars
On 19 oct, 17:53, "Qatan" <wanstad...@gmail.com> wrote:
> Hello,
>
> Using Harbour + GTWVT - no codepage selected.
> Is there any function to convert accented chars so it will show corrected
> in PDF files generated using Haru?
> Some examples: " � � � � � � � � � � � � � � � � "
> Thanks for any hint
>
> Qatan
Hi Qatan
If you are using UTF8 strings, you must use
HB_UTF8TOSTR()
Best Regards
David Monta�o.
Hello David,
Thanks for answering.
Didn´t work. I use OEM strings and need to change it to the way PDF understands it. I am not sure but maybe I should change from OEM to UTF8?
Any hint? Everyone is welcome to help with this.
Regards,
Qatan
----- Original Message ----- From: "David MS" <da...@gesintur.com>
To: "Harbour Users" <harbou...@googlegroups.com>
Sent: Tuesday, 19 de October de 2010 12:56
Subject: [harbour-users] Re: HaruPDF and accented chars
On 19 oct, 17:53, "Qatan" <wanstad...@gmail.com> wrote:
Hello,
Using Harbour + GTWVT - no codepage selected.
Is there any function to convert accented chars so it will show corrected in PDF files generated using Haru?
Some examples: " Á á é í ó ú ç Ç â ê ô Ã ã õ Ü ü "
Thanks for any hint
Qatan
Hi Qatan
If you are using UTF8 strings, you must use
HB_UTF8TOSTR()
Best Regards
David Montaño.Hi Qatan,
I use CP850 and i convert all strings passing through this filter.
FUNCTION CONVIERTECHAR(_string)
_string:=STRTRAN(_string,CHR(161),CHR(237)) && i con tilde A1
_string:=STRTRAN(_string,CHR(160),CHR(225)) && a con tilde A0
_string:=STRTRAN(_string,CHR(130),CHR(233)) && e con tilde 82
_string:=STRTRAN(_string,CHR(162),CHR(243)) && o con tilde. A2
_string:=STRTRAN(_string,CHR(163),CHR(250)) && u con tilde A3
_string:=STRTRAN(_string,CHR(164),CHR(241)) && enie A4
_string:=STRTRAN(_string,CHR(129),CHR(251)) && u con dierisis 81
_string:=STRTRAN(_string,CHR(165),CHR(209)) && enie mayuscula A5
_string:=STRTRAN(_string,CHR(144),CHR(201)) && E con tilde 90
_string:=STRTRAN(_string,"�",CHR(176))
I guess that is more elegant to change the encoding of the pdf :
Please review
http://libharu.sourceforge.net/fonts.html
http://libharu.sourceforge.net/examples.html#encoding_list.c_
El 19/10/2010 04:21 p.m., Qatan escribi�:
--
Maurizio la Cecilia gave me the solution.
I configure the PDF codepage this way:
def_font1 := HPDF_GetFont( pdf, "Helvetica", "WinAnsiEncoding" )
def_font2 := HPDF_GetFont( pdf, "Helvetica-Bold", "WinAnsiEncoding" )
It works great. "CP1252" works also.
Thanks for answering.
Qatan
Qatan
http://libharu.sourceforge.net/fonts.html
http://libharu.sourceforge.net/examples.html#encoding_list.c_
--