From 84821f3331e3958782e70e17a76b1ce1a20da2a3 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Sat, 31 Oct 2020 11:05:04 +0000 Subject: [PATCH] #753 fix UTF-8 handling of Company names in OUI --- Changes | 5 +++-- bin/netdisco-deploy | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Changes b/Changes index 4614fd43..4d5f8227 100644 --- a/Changes +++ b/Changes @@ -1,7 +1,8 @@ -2.046006 - 2020-10-?? +2.046006 - 2020-10-31 - [BUG FIXES] + [BIG FIXES] + * #753 fix UTF-8 handling of Company names in OUI * Try again to drop unneeded constraint on netmap_positions 2.046005 - 2020-10-17 diff --git a/bin/netdisco-deploy b/bin/netdisco-deploy index a57b986a..8713f21d 100755 --- a/bin/netdisco-deploy +++ b/bin/netdisco-deploy @@ -251,8 +251,8 @@ sub deploy_oui { $schema->resultset('Oui')->populate([ map { { oui => $_, - company => $data{$_}{'company'}, - abbrev => $data{$_}{'abbrev'} + company => Encode::decode('UTF-8', $data{$_}{'company'}), + abbrev => Encode::decode('UTF-8', $data{$_}{'abbrev'}), } } keys %data ]);