Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News Editorials & Other Articles General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search

Make7

(8,546 posts)
8. You should use '%40' to encode it in the URL.
Thu Apr 30, 2020, 09:27 AM
Apr 2020
https://www.google.com/search?q=url+encode+for+@    (fail)

https://www.google.com/search?q=url+encode+for+%40    (success)


Using an HTML entity (@) as suggested in the replies above has a couple downsides:

• when you preview a post, it changes the HTML entity into the actual character which will break your link if you hit the Post button from the previewed page. You need to hit the back button on your browser before hitting the Post button.

• when you post it on DU the HTML entity will be changed into the actual character. Should you need to edit your post, you would need to go back and redo any HTML entities you used.


You can use URL encoding for other characters that break links here, just look up the hexadecimal code in an ASCII table.

Recommendations

0 members have recommended this reply (displayed in chronological order):

Latest Discussions»Help & Search»DU Community Help»The "@" character in a hy...»Reply #8