ru_php/ext/standard/tests/strings/utf8.phpt

14 lines
523 B
Plaintext
Raw Permalink Normal View History

--TEST--
UTF-8<->ISO Latin 1 encoding/decoding test
--FILE--
<?php
printf("%s -> %s\n", urlencode("<22>"), urlencode(utf8_encode("<22>")));
printf("%s <- %s\n", urlencode(utf8_decode(urldecode("%C3%A6"))), "%C3%A6");
?>
--EXPECTF--
Deprecated: Function utf8_encode() is deprecated since 8.2, visit the php.net documentation for various alternatives in %s on line %d
%E6 -> %C3%A6
Deprecated: Function utf8_decode() is deprecated since 8.2, visit the php.net documentation for various alternatives in %s on line %d
%E6 <- %C3%A6