On Feb 9, 2010, at 7:55 AM, Arthur Maciel wrote:
Kon, could not understand what should I do. Could you explain me more, please?
Wish I could. PDF text references a glyph from a particular font using a particular encoding. Ex: the 'A' glyph from a Type-1 Helvetica using MacRoman. So you would need to know what glyph index 'á' is in a particular font using a particular encoding.
PDF has a different orientation than Unicode (which is font agnostic and is an encoding). Maybe it is possible to use a Unicode encoding w/ a Unicode font. You would need to dive into a PDF reference.
Sorry, I have no relevant experience here.
2010/2/9 Kon Lovett <address@hidden>
On Feb 8, 2010, at 4:01 PM, Arthur Maciel wrote:
I want to create pdf files that accept characters like "áéíóúç", and I'm using utf8 and pdf eggs. When I create the pdf files following the given examples/test files of pdf egg, requiring and importing utf8 egg, just changing any text to the characters above preceeded by a (->string ...) call, the chars appear as strange pair of characters ("Ã¡Ã©Ã-Ã3ÃoÃ§", respectively).'
The UTF-8 Hex of ç (U+00A7) is 0xC3A
so the string is just the UTF-8 encoding of your list of Unicode characters.
AFAIK PDF only accepts Unicode strings in restricted circumstance & then only using UTF16-BE encoding.
How can I make it work, please?
Thanks in advance.