Fixed character conversion issues.
This commit is contained in:
		| @@ -150,7 +150,7 @@ function printMap($type = 'main') | ||||
| 					$servers_js = array(); | ||||
| 					foreach ($map_location['servers'] as $server) | ||||
| 					{ | ||||
| 						$search_pattern = array("/[^A-Za-z0-9\[\]*.,=()!\"$%&^`<EFBFBD>':;߲<EFBFBD>#+~_\-|<>\/@{}<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ]/"); | ||||
| 						$search_pattern = array("/[^A-Za-z0-9\[\]*.,=()!\"$%&^`´':;߲ł#+~_\-|<>\/@{}äöüÄÖÜ ]/"); | ||||
| 						$replace_pattern = array(""); | ||||
| 						$server['name'] = preg_replace($search_pattern, $replace_pattern, $server['name']); | ||||
| 						$temp = "[" . $server['serverId'] . ','; | ||||
| @@ -183,7 +183,7 @@ function printMap($type = 'main') | ||||
| 					{ | ||||
| 						$players[$row['cli_lat'] . ',' . $row['cli_lng']] = array('cli_lat' => $row['cli_lat'], 'cli_lng' => $row['cli_lng'], 'cli_city' => $row['cli_city'], 'cli_country' => $row['cli_country']); | ||||
| 					} | ||||
| 					$search_pattern = array("/[^A-Za-z0-9\[\]*.,=()!\"$%&^`<EFBFBD>':;߲<EFBFBD>#+~_\-|<>\/@{}<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ]/"); | ||||
| 					$search_pattern = array("/[^A-Za-z0-9\[\]*.,=()!\"$%&^`´':;߲ł#+~_\-|<>\/@{}äöüÄÖÜ ]/"); | ||||
| 					$replace_pattern = array(""); | ||||
| 					$row['name'] = preg_replace($search_pattern, $replace_pattern, $row['name']); | ||||
|  | ||||
| @@ -246,7 +246,7 @@ function printMap($type = 'main') | ||||
| 							'country' => $row['country'] | ||||
| 						); | ||||
| 					} | ||||
| 					$search_pattern = array("/[^A-Za-z0-9\[\]*.,=()!\"$%&^`<EFBFBD>':;߲<EFBFBD>#+~_\-|<>\/@{}<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ]/"); | ||||
| 					$search_pattern = array("/[^A-Za-z0-9\[\]*.,=()!\"$%&^`´':;߲ł#+~_\-|<>\/@{}äöüÄÖÜ ]/"); | ||||
| 					$replace_pattern = array(""); | ||||
| 					$row['name'] = preg_replace($search_pattern, $replace_pattern, $row['name']); | ||||
| 					 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user