aboutsummaryrefslogtreecommitdiffstats
path: root/tools/make-manuf
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-04-30 21:32:51 +0000
committerGerald Combs <gerald@wireshark.org>2012-04-30 21:32:51 +0000
commited76c1bd3839d8335ab71a1c5a49ddf4446942ed (patch)
treebcfe6e7ccb6bfd4d3e3ac7de78d5e796531a94bf /tools/make-manuf
parent1f0cbf3baa284e3dee29c849f5df91099f8f8e8f (diff)
Switch to UTF-8 for remote encodings to match what the IEEE SA is
almost-but-not-quite sending. Add a link to a page with common character encoding errors. svn path=/trunk/; revision=42363
Diffstat (limited to 'tools/make-manuf')
-rwxr-xr-xtools/make-manuf6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/make-manuf b/tools/make-manuf
index efbcb61ebd..be4eef45e5 100755
--- a/tools/make-manuf
+++ b/tools/make-manuf
@@ -15,6 +15,10 @@
# LWP is part of the standard Perl module libwww
+# As of April 2012 the IEEE content is mostly UTF-8 encoded although some
+# of the entries feature sequences listed at
+# http://www.i18nqa.com/debug/utf8-debug.html
+
use Encode;
use open ':encoding(utf8)';
@@ -82,7 +86,7 @@ sub fetch
if (!$result->is_success) {
die ("Error fetching $url: " . $result->status_line . "\n");
}
- return decode("iso-8859-1", $result->content);
+ return decode("utf-8", $result->content);
}
# Write out the header and populate the OUI list with our entries.