FortiPower/PowerFGT

Bug with diacritics

Cool34000 opened this issue · 9 comments

Hi,

I'm having a problem with French accented characters.
For example, if I list addresses objects:

Get-FGTFirewallAddress | select name

name
----
...
Réseau local
Réseau invité
SSLVPN_TUNNEL_ADDR1
all
none
...

Is there any way to fix this? Or is there anything I can do to convert it on the fly?

NB: I would like to avoid this kind of solution:

(Get-FGTFirewallAddress | select name) | ForEach-Object{
    $($_.name.Replace('é','é'))
}

Bonjour !

i will check ! What powershell version release ? And FGT release ?

Salut Alexis !

PowerShell v5.1 - Windows 10 20h2
Bug verified on all FortiOS version (from v5.4, to v7.0)

Thanks

Get the same issue with PS 5 but not with PowerShell 7
I will look for a fix

Confirmed...
Juste updated PowerShell to 7 LTS and problem is gone on my laptop.

Ok found a fix for PS 5 without regression (speed) but not try to add address with accent

Hi,

Juste tested the fix: it works!
Thanks a lot

Thanks for feedback ! I will Merge

can you send me your use case ? (You can send by mail if you prefer !)

can you send me your use case ? (You can send by mail if you prefer !)

Done!