Forum Discussion
DRP
Nimbostratus
May 07, 2015Looking for iRule to convert non-ascii character to ascii
We have users having French character in their name and so F5 convert entire att.dn into hex string. And so comparison against the DN (to see what OU the user is in) breaks.
attr.dn' set to '0x...
What_Lies_Bene1
Cirrostratus
May 08, 2015Are these characters actually supported by ASCII? If not, they can't be converted into ASCII surely?
This is a tough one for a newbie to be facing.
Something like this might work:
set hex_string [what_ever_you_use_to_get_the_hex_dn]
set some_variable [binary format a* [encoding convertto utf-8 [$hex_string]]
log local0. "The converted string is ${some_variable}"
The string, scan and expr commands can also be used in some fashion but without a way to test I can't confidently say what will work I'm afraid.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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