Update urlencode.bm

This commit is contained in:
visionmercer 2022-05-21 08:14:58 +02:00 committed by GitHub
commit aeaaf6661d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@ Function urlencode$ (strng$)
Case 48 TO 57, 65 TO 90, 97 TO 122, 45, 46, 95 Case 48 TO 57, 65 TO 90, 97 TO 122, 45, 46, 95
buf$ = buf$ + char$ buf$ = buf$ + char$
Case Else Case Else
buf$ = buf$ + "%" + Hex$(Asc(char$)) buf$ = buf$ + "%" + Right$("0" + Hex$(Asc(char$)), 2)
End Select End Select
Next i Next i
urlencode$ = buf$ urlencode$ = buf$