URL decode the string

Output of execution

toyota 車

JavaScript

orig = "toyota%20%E8%BB%8A"
console.log(decodeURI(orig))

PHP

<?php
$orig = "toyota%20%E8%BB%8A";
print(rawurldecode($orig))."\n";

Perl

use URI::Escape;
my $orig = "toyota%20%E8%BB%8A";
print uri_unescape($orig)."\n";

Python

import urllib.parse
orig = "toyota%20%E8%BB%8A"
print(urllib.parse.unquote(orig))

Ruby

require 'uri'
orig = "toyota%20%E8%BB%8A"
print URI.unescape(orig) + "\n"