Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-7743

Android: encodeURIComponent returns odd String

    Details

      Description

      When using encodeURIComponent, the return value from Android's Uri.encode seems to be good while debugging, but the JS return value that gets printed doesn't seem to be correct. It seems there is an error in the binding layer somewhere..

      Code:

      Ti.API.debug(encodeURIComponent("üöäß &?/ tes tetst et st e\ntest etes te stet"));
      

      Log:

      02-21 18:07:37.930: D/TiAPI(22633): 1.817237E+132FBFBD1.104170E-317FBFBD1.811392E+132FBFBD2.164448E-312FBFBD                   %26  F F       5.034598e-308s       3.022026e+132tst       3.321918e+133t                    t       5.585349e-308Atest       5.034598e-308tes       1.301351e+132YC�8��:��:Q��&�&!`�&嚿&���&嚿&嚿&tet
      

      Expected Value:

      %EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%20%26%3F%2F%20tes%20tetst%20et%20st%20e%0Atest%20etes%20te%20stet
      

        Attachments

          Activity

            People

            • Assignee:
              pwang Ping Wang
              Reporter:
              mculpepper Marshall Culpepper
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-12172
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code