I been trying to insert a Unicode character ∇ or ▽, so it shows in the PDF generated by Apache FOP.
This is what I did so far:
First you have to know the correct Unicode codepoint to represent the character according to this basic help Apache XSL-FO Input, that Unicode codepoint can be found in unicode.org inside a list of Mathematical Operators. The code is ∇
∇ NABLA, I could also use ▽
▽ a down-pointing triangle.
After finding the correct code I have to select a font containing the necessary glyph and the Adobe PostScript and PDF Specification specify Base-14 Font Character Mapping that must be available to every PostScript interpreter and PDF reader, so I search in the list and the font Symbol contains ∇∇
, (no font contains▽▽
discarded)
After that search the result code I think I should use in xsl:fo is:
<fo:block font-family="Symbol"> ∇ </fo:block>
The problem is when it generates the PDF, the result is not what I expected "∇", but instead of that it shows a "?", I read that when it can't show the character usually shows "#", but my code is showing "?".
I'm using Apache fop 0.95, I suspect is that version which is causing the problem, and I should update to 1.0, but at the moment that's the version used in production, and the team leader said it's difficult at the moment to upgrade it.
So there that is the problem, could be something else besides the version? Could be something dummie I forgot to do? How can I display a Unicode character using Apache fop?