<?php
header('Content-Type: text/plain'); 
# converts a string to NFC or NFD and returns the result
# n is one of nfd or nfc
# str is the string to be converted


if (! isset($_GET['n']) ) {
	$n = 'nfc';
	}
else {
	$n = $_GET['n'];
	}

if (isset($_GET['str']) ) {


	
// DATA
include('n11n.php');


if ($n=='nfd') {
	echo nfd($_GET['str']);
	}
else {
	echo nfc($_GET['str']);
	}
}
?>