Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I add a link to

http://icu-project.org/apiref/icu4j/com/ibm/icu/text/MessageFormat.html#format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition)

to a confluence page? The [] syntax doesn't work, probably because of the special characters.

My first attempt was to paste the URL into Firefox but for some reason, the browser accepts it as it is (instead of replacing all the special characters) :-( Same for Chrome.

What other tools can I use on Linux to turn this into something that Confluence will handle correctly?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Commas, parenthesis, and spaces are either illegal or reserved in URLs and must be percent encoded. So try:

http://icu-project.org/apiref/icu4j/com/ibm/icu/text/MessageFormat.html#format%28java.lang.Object%5B%5D%2C%20java.lang.StringBuffer%2C%20java.text.FieldPosition%29

Most programming languages have functions that percent encode URLs. (I used Python's urllib2.quote for this.) There are also several websites that will do it for you.

share|improve this answer
    
Thanks. Python will do for me. –  Aaron Digulla Jul 13 '11 at 14:16

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.