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

URL encode everything in a url but the = signs

Participant ,
Jan 11, 2010 Jan 11, 2010

Copy link to clipboard

Copied

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

Views

617

Translate

Translate

Report

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));

Votes

Translate

Translate
LEGEND ,
Jan 11, 2010 Jan 11, 2010

Copy link to clipboard

Copied

LATEST

use nested functions

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

Votes

Translate

Translate

Report

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
Documentation