[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
URL encode in bash
From: |
Peng Yu |
Subject: |
URL encode in bash |
Date: |
Mon, 29 Mar 2021 22:39:29 -0500 |
Hi,
https://gist.github.com/cdown/1163649
I see a bash program is shown above for URL encode. But I am not sure
if it works correctly.
For example, α should be %CE%B1. But the following command shows differently.
$ printf '%%%02X\n' "'α"
%3B1
What is the correct way to do URL encode in bash?
--
Regards,
Peng
- URL encode in bash,
Peng Yu <=