I use document.referrer to capture the previous URL of the current page and send it to the curl file, this curl file sends this variable to the PHP file again to save it to the database. The problem is that when I save to the database, I get the URL value in the form of accented letters, for example
†Ûiÿû®û(~×(›û®û(~×â•ïðŠwhÂÏڞئjî
I used base64 encoding scheme in my php file. A generalization of the MySQL column latin1_swedish_ci .
Thanks.
Vandana pareek
source share