relevant .ind script:
get_vpn_certificate_local_details.ind.txt
I'm returning some unicode character data from a device (an SSL certificate name). Via SSH on the device, the data displays fine:
TÜBİTAK_UEKAE_Kök_Sertifika_Hizmet_Sağlayıcısı_-_Sürüm_3
But, once I parse with JAWK, it's mangled:
2017-12-07 11:21:21,142 32023 DEBUG - ********* TÃBÄ°TAK_UEKAE_Kök_Sertifika_Hizmet_SaÄlayıcısı_-_Sürüm_3
So, ultimately, in the live config, it is also mangled.
A quick Google didn't really help me at all -- I get the sense that current versions of gawk support unicode, but I was surprised at how little info there was to easily find. I didn't dig hard.
I'm assuming we're just stuck with ASCII, but wanted to make sure: anything I can do about this?
to reproduce:
- run attached script against a fortinet device which has Unicode certificate names.
expected:
cert names display properly in live config
actual:
cert names are mangled