From 3e24107f81ff17f3071fde718665a43cb90c856c Mon Sep 17 00:00:00 2001
From: Hirofumi Kosaka <kosaka@rworks.jp>
Date: Mon, 26 Sep 2016 18:47:41 +0900
Subject: [PATCH] Consider multi-byte chars in plugin_macros (in network
 components).

---
 pandora_console/godmode/modules/manage_network_components.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pandora_console/godmode/modules/manage_network_components.php b/pandora_console/godmode/modules/manage_network_components.php
index 5a28657a51..2fa34b06c9 100644
--- a/pandora_console/godmode/modules/manage_network_components.php
+++ b/pandora_console/godmode/modules/manage_network_components.php
@@ -70,7 +70,7 @@ if (!empty($macros)) {
 		$macros[$k]['value'] = get_parameter($m['macro'], '');
 	}
 	
-	$macros = json_encode($macros);
+	$macros = io_json_mb_encode($macros);
 }
 
 $max_timeout = (int) get_parameter ('max_timeout');