Basically they are the same, except for the following: - urlencode encodes a space as a + - rawurlencode encodes a space as %20 Every other character/sign is replaced in the same way in both functions, as far as I know.