New topic: Danish special charecters don't get URL encoded correctly
<http://forums.realsoftware.com/viewtopic.php?t=30597> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message ilyberth Post subject: Danish special charecters don't get URL encoded correctlyPosted: Thu Oct 22, 2009 7:19 am Joined: Thu Oct 22, 2009 7:02 am Posts: 1 I have problems getting the danish charecters , à à à and æ ø Ã¥ converted correctly using the EncodeURLComponent. Correct vallues are like this: "Ã" = "%C6" "Ã" = "%D8" "à " = "%C5" "æ" = "%E6" "ø" = "%F8" "Ã¥" = "%E5" RealBasic makes these conversions: "Ã" = "%C3%86" "Ã" = "%C3%98" "à " = "%C3%85" "æ" = "%C3%A6" "ø" = "%C3%B8" "Ã¥" = "%C3%A5" How do i make the correct conversion? Is there some setting to the EncodeURLComponent that i have missed or do i need to make my own conversion? Regards Isak Top silverpie Post subject: Re: Danish special charecters don't get URL encoded correctlyPosted: Thu Oct 22, 2009 8:19 am Joined: Sat Oct 01, 2005 9:55 am Posts: 372 Actually, for modern usage, RB is making the more-often-correct conversions. The standard is to encode the UTF-8 bytes, which are the two-byte sequences you see there. If the app on the other end from you is expecting the Latin-1 bytes to be percent-encoded instead, it's the one that's operating unusually, and you'd have to do by-hand encoding to feed it. Top npalardy Post subject: Re: Danish special charecters don't get URL encoded correctlyPosted: Thu Oct 22, 2009 9:43 am Joined: Sat Dec 24, 2005 8:18 pm Posts: 5354 Location: Canada, Alberta, Near Red Deer ilyberth wrote:I have problems getting the danish charecters , à à à and æ ø Ã¥ converted correctly using the EncodeURLComponent. Correct vallues are like this: "Ã" = "%C6" "Ã" = "%D8" "à " = "%C5" "æ" = "%E6" "ø" = "%F8" "Ã¥" = "%E5" Using what encoding ? ilyberth wrote:RealBasic makes these conversions: "Ã" = "%C3%86" "Ã" = "%C3%98" "à " = "%C3%85" "æ" = "%C3%A6" "ø" = "%C3%B8" "Ã¥" = "%C3%A5" Using UTF-8 this seems correct ilyberth wrote:How do i make the correct conversion? Is there some setting to the EncodeURLComponent that i have missed or do i need to make my own conversion? If you're sending this to a server or another app that expects an encoding other than UTF-8 you might need to create your URL, convert the encoding to what the destination expects, then URL encode it _________________ My web site Great White Software RBLibrary.com REALbasic learning Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 3 posts ]
-- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
