Converting and Encoding a URL Containing Extended ASCII Characters (Delphi utility with source)
It has come to my attention that some programming languages do not always make it very easy to convert and encode a URL. While helping someone with bug testing and adding Last.fm support to a media player, we came across a problem with opening URL's to the correct page on last.fm's site when the title, artist or other tag info contained extended ASCII characters. Example: Artist: Bjørn Lynne Title: Methydias Cloudship This would be the correct URL on their site for this song: http://www.last.fm/music/Bj%C3%B8rn%20Lynne/_/Methydias%20Cloudship But in AHK, which does not support unicode, attempting to come up with the URL resulted in this incorrect one: http://www.last.fm/music/Bj%F8rn%20Lynne/_/Methydias%20Cloudship The problem was that you have to convert the URL from Ansi to UTF-8 before you encode it. At first he wasn't sure if he could fix the problem, as that was what he thought he was doing in the first place. So, while he decided to take a break from bug fixing to go p