Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

URL encode everything in a url but the = signs

Participant ,
Jan 11, 2010 Jan 11, 2010

I jave one long string with pairs of parameter and values concatenated like so:

<cfset mystring = "variable1=$13&variable2=http://&variable3=z">

I need to url encode the parameter and parameter values... but the = equal sign should not be encoded.

Do I have to split the the string up.

I also can't have the url encoded function encode . periods in a url? I'm not sure why it does it by default

TOPICS
Advanced techniques
647
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jan 11, 2010 Jan 11, 2010

use nested functions

yourvar = ReReplace(urlencodedformat(string), pattern));

Translate
LEGEND ,
Jan 11, 2010 Jan 11, 2010
LATEST

use nested functions

yourvar = ReReplace(urlencodedformat(string), pattern));

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources