Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am trying to use bibtex to output the url from a reference, but it's not working because the url has accentuation, just like below:

url = {http://www.epe.gov.br/mercado/Documents/Série\%20Estudos\%20de\%20Energia/20130117_1.pdf},

The output is:

http://www.epe.gov.br/mercado/Documents/S\unhbox\voidb@x\ bgroup\let\unhbox\voidb@x\setbox\@tempboxa\hbox{e\global\ mathchardef\accent@spacefactor\spacefactor}\accent19e\ egroup\spacefactor\accent@spacefactorrie%20Estudos%20de% 20Energia/20130117_1.pdf

Is there a way to protect the accentuation when it enters on url environment?

share|improve this question
3  
    
Thanks, didn't know about this other site. Where can I find this percentage substitutions for accentuations and special characters? –  Werner Feb 8 '13 at 15:55
    
Could you please change you user name to a unique one? We already have another Werner here... –  Martin Schröder Feb 16 '13 at 20:44
add comment

migrated from stackoverflow.com Feb 8 '13 at 12:12

This question came from our site for professional and enthusiast programmers.

2 Answers

up vote 6 down vote accepted

An URL should not contain accented characters (cf. Uniform resource locator or RFC 3986).

In your URL, replace accented characters by encoded characters:

http://www.epe.gov.br/mercado/Documents/S%C3%A9rie%20Estudos%20de%20Energia/20130117_1.pdf

Edit: Fast reference for encoded characters.

share|improve this answer
add comment

If I use \usepackage[]{hyperref} before \begin{document} and use in my bibliography e.g. url = {http://www.de.wikipedia.org/wiki/Beyoncé_Knowles}, then everything runs without problems. But it is difficult to say if the hyperref-package helps in your case because you do not tell us which packages you are using.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.