September 15, 2009

Escaped Sequence in URL

Today's lunch is Whopper Jr. with French fries and Coke. Since the time I left home is a quarter to 12, I needed to re-route my bus route in order to avoid a long wait - after I missed a bus full of passengers. Arriving school, the canteen was full-house and the weather was damn hot. I chose Burger King as it is less crowded - more expensive - and with air conditioning.

Half-way into my Whopper, my Onee Chan rang me asking how to encode '&' in url string. I asked her to google with keywords "escape character in url". After a while she replied she got around the problem by using '%' followed by the ASCII code. I just noted that.

Update : The next day, I googled myself and found that URL encoder function in java libraries can be used for this purposes as URL are not always encoded in ASCII, UTF-8 or any coding standard. For different locales, URL encoder functions work persistently.

No comments:

Post a Comment

Guess Count

Since August 1st, 2009, Law Shay had enjoyed his lunch together with friends.