From: Wolfgang W. <wol...@di...> - 2021-08-25 06:39:48
|
Dear List! When using ns_urlencode, I've noticed, that the "@" sign will not be percent encoded, unless "-part oauth1" is stated: ns_urlencode te...@te... te...@te... ns_urlencode -part oauth1 te...@te... test%40test.com What is the correct way to encode URL params, e.g. in http://test.com/register/login?email=te...@te... In Javascript (Chrome + Firefox) encodeURIComponent("te...@te..."); yields "test%40test.com" This is should be the RFC for this topic: https://datatracker.ietf.org/doc/html/rfc3986#section-2.3 <https://datatracker.ietf.org/doc/html/rfc3986#section-2.3> Yours, Wolfgang -- *Wolfgang Winkler* Geschäftsführung wol...@di... mobil +43.699.19971172 dc:*büro* digital concepts Novak Winkler OG Software & Design Landstraße 68, 5. Stock, 4020 Linz www.digital-concepts.com <http://www.digital-concepts.com> tel +43.732.997117.72 tel +43.699.1997117.2 Firmenbuchnummer: 192003h Firmenbuchgericht: Landesgericht Linz |