Forum Discussion
Sandeep_374170
Nimbostratus
Oct 10, 2018Is it possible to replace extended ASCII characters in URI to UTF-8 character set
Hi,
Is it possible to replace extended ASCII characters in URI to UTF-8 character set via iRule?
BR
Sandeep
Stanislas_Piro2
Cumulonimbus
Oct 16, 2018based on kevin's code, you can try this...
when RULE_INIT {
set map_list [list]
for {set i 128} {$i<192} {incr i} {
lappend map_list [binary format c $i] %C2%[format %X $i]
}
for {set i 192} {$i<256} {incr i} {
lappend map_list [binary format c $i] %C3%[format %X $i]
}
set static::extended_ascii_map_list $map_list
}
when HTTP_REQUEST {
HTTP::uri [string map $static::extended_ascii_map_list [HTTP::uri]]
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects