summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/utf8.phpt
blob: aea04fdecd855fb1cb180ca21a7d74a90039b6e2 (plain)
1
2
3
4
5
6
7
8
9
10
--TEST--
UTF-8<->ISO Latin 1 encoding/decoding test
--FILE--
<?php
printf("%s -> %s\n", urlencode("æ"), urlencode(utf8_encode("æ")));
printf("%s <- %s\n", urlencode(utf8_decode(urldecode("%C3%A6"))), "%C3%A6");
?>
--EXPECT--
%E6 -> %C3%A6
%E6 <- %C3%A6