What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 127 Stack Exchange communities.

Possible Duplicate:
URL with ' ' (space) not working

I pasted the following URL into a comment, and SO failed to parse it correctly.

http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#insert(java.lang.String, java.lang.String, android.content.ContentValues)

The comment is in response to this question: http://stackoverflow.com/a/9158274/385478

share|improve this question

marked as duplicate by Shadow Wizard, alex, ChrisF, Grant Thomas, Tim Stone Feb 6 '12 at 13:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

4  
Congratulations, Java, in constructing documentation URLs which continue to haunt us evermore. –  Grant Thomas Feb 6 '12 at 10:07
    
As you can see it's also failed to parse it the body of the question too. Probably an issue with the brackets and/or commas. –  ChrisF Feb 6 '12 at 10:07
    
And this is a dupe, by the way. /lazy –  Grant Thomas Feb 6 '12 at 10:10
3  
@ChrisF: I would blame the spaces in the URL over brackets and commas ;). –  Matt Feb 6 '12 at 10:14
    
@Matt - If you copy the link address of the above link you get: http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.h‌​tml#insert(java.lang.String - note no comma at the end. However, the spaces probably don't help either. –  ChrisF Feb 6 '12 at 10:18
add comment

2 Answers

The URL is malformed; a valid form would be:

http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#insert%28java.lang.String,%20java.lang.String,%20android.content.ContentValues%29

If you use the link icon to construct the link, it will massage the URL into a correct form: example.

share|improve this answer
add comment

On removing the spaces from the link the problem 'goes away' - but then you don't have that link precisely. You could, of course, alter ugly Java documentation inherited type links used there (and other places) to use %20 for the spaces instead, which 'fixes' the link, but could be considered a laborious effort.

Here's an explanation of URL formatting using Markdown, but it doesn't cover this scenario. If it wasn't Monday I might have done so.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged .