RTF special characters

Hello,

Llsetoption(::hjob,LL_OPTION_CODEPAGE,1252))

My report contains a [Formated Text]
The text itself comes from my application.
«Debiteur.Voettekst»

This RTF text contains a special character. 'ef
According the ASCII table this should be ï (an I with 2 dots).

{\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 Times New Roman;}}
\viewkind4\uc1\pard\lang1043\f0\fs24 Deze factuur zal per direct worden ge’efncasseerd.
\par }

Notice ge[h]'ef[/h]ncasseerd

The correct codepage (1252) is set in the RTF.

However, the shown character on the report look as 0xef ´ of the OEM character set.

What is my mistake?

Regards,
Jack Duijf

Hi Jack,

Thank you for you note.

I have tried to reproduce your problem without success. I have used the most recent version 18 with Service Pack 5 (18.005).

I would ask you to test the behavior with this version and one of our samples. If it is still reproduceible, please provide the steps you are using. Thank you.

Kind Regards

Erdal Alacali
Technical support
combit GmbH

Hello Erdal,

Thank you for the reply.
In any of the samples “List & Label Sample Application”,
I can not find an sample that reads Rtf data from a database (that I can modify).

How to proceed ?

Regards,
Jack Duijf

Hello,

I managed to fix the problem.
There was double conversion from Oem to Ansi responsible for this behaviour.

cRtf := ConvToAnsiCp(cRtf)

cRtf := ConvToAnsiCp(cRtf)

After removing the second line, all looks fine now.

Regards,
Jack Duijf