[XeTeX] Hyperref \hyperlink and \hypertarget not working with accented characters

Ross Moore ross.moore at mq.edu.au
Wed Nov 2 01:04:27 CET 2011

Hello Andy,

On 02/11/2011, at 10:40 AM, Andy Black wrote:

> I have not heard back from anyone on this issue.
> Has anyone else had success with hyperlinks that use accent characters in the link?
> Thanks,
> --Andy
> On 9/2/2011 12:02 PM, Andy Black wrote:
>> Hello,
>> I'm using XeTeX version 3.1415926-2.2-0.9997.4 (Web2C 2010) (format=xelatex 2010.11.15) with hyperref  2010/10/30 v6.81t.

>>    \hyperlink{rAsociación}{APLT (1988)}

Don't use non-ASCII characters in the link.

The link anchor is just a string that is used internally.
It is never displayed in the PDF, so why risk running
into encoding problems by using non-ASCII characters?

PDF does not use UTF8 at all. 
You'll have to transform any UTF8 characters into a UTF16 
ASCII-HeX representation of the Unicode code-point,
both in the destination-label and in any corresponding
hyperlink target-labels that point at it.

>> with
>>    \hypertarget{rAsociación}{Asociación para la Promoción de Lecto-Escritura Tlapaneca.  1988.  }
>> then the hyperlink in the resulting PDF does not go to the target.  If I replace the accented o with an unaccented o, then the hyperlink works fine.
>> Do I need to do something special to get the hyperref package to produce hyperlinks that work when there are non-A-Z characters?

Hyperref gives the means to do this, using  \pdfstringdef .

But since this label is only used internally, you might as well
save your self some trouble, and (La)TeX some processing time,
by just using ASCII letters for such things.

>> Thanks,
>> --Andy

Hope this helps,


Ross Moore                                       ross.moore at mq.edu.au 
Mathematics Department                           office: E7A-419      
Macquarie University                             tel: +61 (0)2 9850 8955
Sydney, Australia  2109                          fax: +61 (0)2 9850 8114

More information about the XeTeX mailing list