AddPictureEx with metafile, unicode shown as question marks
Posted: Tue Mar 30, 2010 11:34 am
Hi,
i have the problem that the generated .rtf file is showing question mark letters instead of unicode(cyrillic, japanese, chinese letters); has AddPictureEx Problems with metafiles including unicode or is it the SaveRTF method?
the orginal metafile (in the software IrfanViewer the metafile and the unicode text are shown correctly):
http://www.beka-consulting.com/assets/CAST/metafile.wmf
see the difference, question marks, in the generated rtf file: http://www.beka-consulting.com/assets/CAST/report.rtf
thanks in advance,
regards,
Alex
i have the problem that the generated .rtf file is showing question mark letters instead of unicode(cyrillic, japanese, chinese letters); has AddPictureEx Problems with metafiles including unicode or is it the SaveRTF method?
Code: Select all
mf := TMetaFile.Create;
mf.LoadFromFile('metafile.wmf');
richViewEdit.AddPictureEx('Script', mf, pCenter, rvvaBaseline);
richViewEdit.SaveRTF('report.rtf', false)
http://www.beka-consulting.com/assets/CAST/metafile.wmf
see the difference, question marks, in the generated rtf file: http://www.beka-consulting.com/assets/CAST/report.rtf
thanks in advance,
regards,
Alex