Is there a known limit for @URLEncode

I am experiencing another problem with @URLEncode - if the length of the text exceeds roughly 1K bytes, it fails. Is this known, or am I doing something wrong?

Working in LS, my script is very simple…

urlResult=Evaluate(|@URLEncode(“UTF-8”;“| & urlSend &|”)|,note)

If length of urlSend > 1K, it fails.

Any help is appreciated.

Subject: Few things to check

Heya,

you problem could have several causes.

  1. Illegal characters in the URL.

You are using pipes to determine your string value, which should be the safest. However, if the URL would have | " or ', it might not escape correctly.

  1. @URLEncode really cant handle that many chars

make a form, add the a field computed, @URLEncode and make the string BIG with only normal chars.

  1. The evaluate cannot process that many characters.

If you tested part 2 and received no errors. Then try it again on the form with the actual URL. If that fails, its the URL. If it works then it would mean the string is too long for the evaluation and not the encoding.