1

Closed

Apostrophe causes error in Renderer

description

Some variations of apostrophes cause the renderer to issue a 'Raw string contains invalid character' exception.
The failing character when cast to an int returns 8217.
The normal apostrophe when cast to an int returns 39.

document.Info.Subject = subject..Replace("’", "'") is a workaround.
Closed Sep 15, 2016 at 1:28 PM by ThomasHoevel

comments

petert1401 wrote Mar 25, 2016 at 10:11 AM

Forgot to mention, this is Migradoc v1.50 Beta 3b.

petert1401 wrote Mar 25, 2016 at 10:27 AM

This is the unicode 'Right Single Quote character, and I guess the left single quote has the same issue.
See TEXT

ThomasHoevel wrote Sep 15, 2016 at 1:27 PM

With current internal build, Unicode characters can be used here (including apostrophes).

For older versions, the hack shown in the forum can be used:
http://forum.pdfsharp.net/viewtopic.php?p=9523#p9523

wrote Sep 15, 2016 at 1:28 PM

wrote Sep 15, 2016 at 1:28 PM