We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bc566f commit 76c87a9Copy full SHA for 76c87a9
src/core/n-strings.c
@@ -676,7 +676,7 @@ static struct digest {
676
REBUNI c = up[0];
677
up++;
678
679
- if (c > 0x80) {// all non-ASCII characters *must* be percent encoded
+ if (c >= 0x80) {// all non-ASCII characters *must* be percent encoded
680
encoded_size = Encode_UTF8_Char(encoded, c);
681
goto char_needs_encoding;
682
} else {
src/tests/units/series-test.r3
@@ -261,6 +261,7 @@ Rebol [
261
--assert "%22%25-.%3C%3E%5C%1F%60%7B%7C%7D~" = enhex {"%-.<>\^_`{|}~}
262
; --assert %%C5%A1ik = enhex %šik ;<-- this does not work yet!
263
--assert "šik" = to-string dehex enhex to-binary "šik"
264
+ --assert "%C2%80" = enhex to-string #{80}
265
266
267
===end-group===
0 commit comments