Forum Discussion
ims_243721
Nimbostratus
Jan 15, 2016TCL encoding command not accepted
I need to encode variable with unicode
set uni_msg [URI::query [HTTP::uri] "msg"]
set en_msg [encoding convertto unicode $uni_msg]
Seems that F5 interpreter not accepting encoding TCL comm...
Kai_Wilke
MVP
Jan 15, 2016Hi Ims,
unfortunately there does not exist a simple hack to access the
[encoding]
command.
In v9 the
[encoding]
command was official listed as a disabled command. In newer versions is not listed anymore... But instead its now completely removed / hidden from the iRule environment, since you can even find the command using [info command *]
. I duno if this is a just documentation bug or an unintended behavior. But you may raise a ticket to clarify the situation with the F5 support.
https://support.f5.com/kb/en-us/solutions/public/6000/300/sol6319.html
You may also want to perform the needed unicode conversation using a
[string map]
command and a $charmap
of your choice. This technique would allow you to define the unicode format and possible escape sequences as required by your application.
If you need further assistence to setup the charmap, then provide a sample of the unicode format the application expects.
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