Titanium JIRA Archive
Appcelerator Community (AC)

[AC-754] encodeURIComponent double encoding @

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionCannot Reproduce
Resolution Date2014-05-04T06:16:08.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterNeville Dastur
AssigneeRitu Agrawal
Created2014-04-22T22:27:15.000+0000
Updated2016-12-01T10:40:13.000+0000

Description

encodeURIComponent("foo@bar") on iOS will give the expected foo%40bar but on Android it returns foo%2540bar It seems to have been a known java bug back in 2008 and described again in Play http://stackoverflow.com/questions/5506005/play-framework-double-url-encoding

Comments

  1. Ritu Agrawal 2014-04-24

    I am unable to reproduce this issue on my Android 4.2.2 device. I see the consistent behavior across iOS and Android platforms. Are you seeing this issue on a particular Android device?
  2. Neville Dastur 2014-04-24

    Hi. I have seen this bug on a Samsung S5. I will try it out in other emulators. But maybe it is hardware specific?
  3. Ritu Agrawal 2014-05-04

    Resolving this ticket as we have not been able to reproduce this issue with the provided test case. We would be happy to reopen this ticket once we have more information available.
  4. Jose Cerrejon 2016-12-01

    When I write _encodeURIComponent($.txtResetEmail.value)_ with _value=asd@asd.com_, return *asd%%40asd.com* (must be asd%40asd.com). OSX 10.10.5 SDK 5.4.0 - 5.5.1 Genymotion with Google Nexus 5 - 6.0.0 - API 23 - 1080x1920 and Google Nexus 4 - 4.2.2 - API 17 - 768x1280

JSON Source