19.0.0 released Nov 08, 2023
Pf url

Purpose: Outputs a URL-encoded formatted string.

pf-url [ format ] <format> <expression> [ , <expression> ]... \
    [ bytes-written [ define ] <bytes> ] \
    [ to-error ] \
    [ to [ define ] <string> ]

pf-url is the same as pf-out, except that the output is URL-encoded. This means such output is suited for use in URL parameters.
Examples
Create a URL based on arbitrary strings used as URL parameters - for instance space would be encoded as "%20" in the final output:
@<a href='<<p-path>>/update?val=<<pf-url "Purchased %s for %lld dollars", piece_desc, price>>'>Log transaction</a>

See pf-out for more examples.
See also
Output
finish-output  
flush-output  
output-statement  
p-dbl  
pf-out  
pf-url  
pf-web  
p-num  
p-out  
p-path  
p-url  
p-web    
See all
documentation


You are free to copy, redistribute and adapt this web page (even commercially), as long as you give credit and provide a dofollow link back to this page - see full license at CC-BY-4.0. Copyright (c) 2019-2023 Dasoftver LLC. Vely and elephant logo are trademarks of Dasoftver LLC. The software and information on this web site are provided "AS IS" and without any warranties or guarantees of any kind. Icons from table-icons.io copyright Paweł Kuna, licensed under MIT license.