Forum Discussion
bc1
Nimbostratus
Nov 28, 2017HTTP::Collect results in garbled HTTP::Payload when using non-english characters
Hi there,
I'm using an irule to collect a POSTed payload, manipulate the content and then POST on to the back-end pool, however when non-english characters are used then the collected payload is ga...
Kai_Wilke
MVP
Nov 29, 2017Hi bc,
the programming language of iRules is TCL which uses always UTF-8 to represent a string. If your input contains highbit ASCII charcters (e.g. Win1252, Latin-1, ISO-8859-1) certain TCL commands will silently change the used encoding.
To reformat UTF-8 back to its ASCII representation you could try a
set output [binary format A* $input]
. By doing so the UTF-8 encoded string representation of the $input
will shimmer to a binary $output
which is encoded in plain-ASCII.
Cheers, Kai
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