Contents
出力結果
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"