Unicode keyword translation

Do you see garbled text, unicode keywords in your referral web stats reports like below?

เรียภที่ไหน

Use the below url for the conversion:

Unicode keyword translation

Here is the simple php source code that uses google translate for translation to English:

<?php header("Content-Type: text/html; charset=iso-8859-1"n style="color: #007700">); ?>r />
<html>
<head>
  <title>Unicode keyword translation</title>
</head>
<body>
  <br />
  Copy/paste unicode keyword:
  <br />
  <br />
  <form action="convert_keywords.php">
    <input size="100" name="input" value="<?= $_GET['input']; ?>" type="text">
    <input value="Go" type="submit"> />  </form>
  <br />
  <br />

<?php
  $pieces
=explode("=", $_SERVER['QUERY_STRING']);
 
$query=$pieces[1];
 
$translate_url="http://translate.google.com/?hl=en#auto|en|" . $query;
  if(!empty(
$query)) {
?>
r />
  <iframe src="<?= $translate_url; ?>" width="100%" height="100%"> />  Iframe unsupported...
  </iframe>

<?php } ?>r />
</body>
</html>

Comment