Forum Discussion
ashilkin_177320
Nimbostratus
Deckard, Thank you for help, but unfortunately it doesn't work in my case. Thanks for F5 support, they found solution - for my case, I should use following construction for generating binary string rather than UTF-8 encoding:
set web_page [ binary format a* [subst -nobackslashes [ifile get web_page]]]
...
HTTP::respond 200 content $web_page "Content-Type" "text/html;charset=utf-8"
For details - https://www.tcl.tk/man/tcl8.4/TclCmd/binary.htm
Ping_Xiong_1567
Jun 09, 2018Historic F5 Account
This is really cool, I can handle Chinese characters with the ifile.