PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

RTFRendering accented chars (àèìòù) issue
https://forum.pdfsharp.net/viewtopic.php?f=2&t=3755
Page 1 of 1

Author:  alexanderthorn [ Fri Mar 30, 2018 3:11 pm ]
Post subject:  RTFRendering accented chars (àèìòù) issue

Hi,
I'm writing an RTF document with the MigraDoc class RtfRendering.
When I add text with the method AddFormattedText and there're some accented chars (i.e.: àèìòù) I've a strange output.
Is there a solution?
Thanks in advance.
Bye

Author:  TH-Soft [ Fri Mar 30, 2018 3:24 pm ]
Post subject:  Re: RTFRendering accented chars (àèìòù) issue

Hi!
alexanderthorn wrote:
[...] I've a strange output.
Make it replicable.
http://pdfsharp.net/wiki/IssueSubmissions.ashx

Author:  alexanderthorn [ Fri Mar 30, 2018 3:38 pm ]
Post subject:  Re: RTFRendering accented chars (àèìòù) issue

Sorry,

input chars:

àèéìòù
!"£$%&/()='ì?^

output chars:

������
!"�$%&/()='�?^


Thanks! :)

Author:  TH-Soft [ Fri Mar 30, 2018 3:53 pm ]
Post subject:  Re: RTFRendering accented chars (àèìòù) issue

alexanderthorn wrote:
input chars: [...] output chars:
Which font? Which operating system? Which tool used to open RTF file? Which MigraDoc version?


Link:
viewtopic.php?f=2&t=832

Thanks! :lol:

Author:  alexanderthorn [ Fri Mar 30, 2018 4:00 pm ]
Post subject:  Re: RTFRendering accented chars (àèìòù) issue

Sorry for my approximation.

There's few code.

fnt = New DocumentObjectModel.Font
fnt.Size = 12
fnt.Bold = True
fnt.Color = DocumentObjectModel.Colors.Blue

hyperlink = New DocumentObjectModel.Hyperlink
hyperlink.Type = DocumentObjectModel.HyperlinkType.File
hyperlink.Name = "àèìòù"
hyperlink.AddFormattedText("àèìòù", fnt)

paragraph.Add(hyperlink)


PDFsharp-MigraDoc-GDI 1.32.4334.0
Windows 10 Pro

Thanks twice ;)

Author:  TH-Soft [ Fri Mar 30, 2018 5:11 pm ]
Post subject:  Re: RTFRendering accented chars (àèìòù) issue

Today (Friday) and Monday are bank holidays in Germany.
I'll try the text in our application on Tuesday to see what MigraDoc 1.50 makes out of it.

Author:  Thomas Hoevel [ Tue Apr 03, 2018 8:14 am ]
Post subject:  Re: RTFRendering accented chars (àèìòù) issue

Hi!

I made a test with our application.
Input data:
Code:
àèéìòù
!"£$%&/()='ì?^


Output data shown by MS Word 2016:
Code:
àèéìòù
!"£$%&/()='ì?^


Case closed, because not replicable with current version.

Maybe there is something wrong with your code. Maybe this is a problem of the old version 1.32 which was fixed sometime in the four or five years that elapsed since version 1.32 was published.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/