From cc2d112535f2df415d76abca4dff18cd55e36d3b Mon Sep 17 00:00:00 2001 From: livecodesam Date: Thu, 29 Aug 2019 10:41:57 +0100 Subject: [PATCH] [Bugfix-22340] Add note about non-ASCII chars to URLEncode entry --- docs/dictionary/function/URLEncode.lcdoc | 6 ++++++ docs/notes/bugfix-22340.md | 1 + 2 files changed, 7 insertions(+) create mode 100644 docs/notes/bugfix-22340.md diff --git a/docs/dictionary/function/URLEncode.lcdoc b/docs/dictionary/function/URLEncode.lcdoc index 912ef36e91f..127bfe8ecdf 100644 --- a/docs/dictionary/function/URLEncode.lcdoc +++ b/docs/dictionary/function/URLEncode.lcdoc @@ -62,7 +62,13 @@ appears in the formString, it is converted to "%7E". return pString end urlEncodeRFC +>*Note:* Non-ASCII characters, such as Unicode, that appear in the string +> to be encoded must first be encoded as UTF-8 (as per standard +> convention), requiring the use of the . +> The code example given above can perform this task. + References: post (command), function (control structure), +textEncode (function), function (glossary), hexadecimal (glossary), encode (glossary), ASCII (glossary), return (glossary), server (glossary), URL (keyword), character (keyword), http (keyword), string (keyword) diff --git a/docs/notes/bugfix-22340.md b/docs/notes/bugfix-22340.md new file mode 100644 index 00000000000..7274bc3a6d7 --- /dev/null +++ b/docs/notes/bugfix-22340.md @@ -0,0 +1 @@ +# Added a note to the URLEncode entry that non-ASCII input must have first been put through textEncode