Help and Support
Ask a question, report a problem, request a feature...
<<  Back To Forum

Client Profile Scripting. Current scripting method using % then

by TexMex on 2024/10/15 12:05:32 AM    
Hi,

I'm trying to create a custom client profile that contains % signs and random letters and numbers inbetween these % signs.

The problem is that Tixati currently states the following:

// Encode non-ascii characters with % then a two-digit hexidecimal number.
// Encode the percent character itself with %25.

And this is a problem when traying to create certain types of client profiles.

When I try to replicate for example a string like this: -%1d%9d%7dt%eb%0c%21%f3-

Where I want Tixati to keep the % signs in place and just randomize some, but not all of the letters and numbers.

The problem is that Tixati will think that with a "% then a two-digit hexidecimal number" I intend to create a non-ascii character, while that is not my intention.

Also I don't understand this part: // Encode the percent character itself with %25.

When I write %25 or %25. in the script, tixati will also write .25% in the peer_id while my intention is to make Tixati display a % sign only and not interpretate it as me trying to create a "non-ascii characters with % then a two-digit hexidecimal number."

How can I achieve this?
by Guest on 2024/10/16 12:11:06 PM    
This is called URI-encoding, you can see this on Wikipedia pages that have Unicode characters in the URL (link).




This web site is powered by Super Simple Server