function U(text) {
  return /[^\x00-\xff]/.test(text)
    ? text
    : decodeURIComponent(escape(text));
}

おすすめ