Forum Discussion

UmaMaheshwari_9's avatar
Icon for Nimbostratus rankNimbostratus
Jun 15, 2011

html content in iRule




I have a requirement wherein I have to show a html page saying that the page has been moved to else where. I have to show this html page for different languages. I can place the contents in html tag in IRule. Can I have foreign characters (text for different languages) inside the html tag of iRule?


1 Reply

  • It does not seem to accept multibyte characters. But you can b64encode your strings and return decoded strings in response. Something like:

    when HTTP_RESPONSE {
       HTTP::respond 200 content [b64decode "JiMxMDg3OyYjMTA4ODsmIzEwODA7JiMxMDc0OyYjMTA3NzsmIzEwOTA7"]