xref: /PHP-8.4/ext/standard/tests/strings/utf8.phpt (revision 29f98e74)
1--TEST--
2UTF-8<->ISO Latin 1 encoding/decoding test
3--FILE--
4<?php
5printf("%s -> %s\n", urlencode("�"), urlencode(utf8_encode("�")));
6printf("%s <- %s\n", urlencode(utf8_decode(urldecode("%C3%A6"))), "%C3%A6");
7?>
8--EXPECTF--
9Deprecated: Function utf8_encode() is deprecated since 8.2, visit the php.net documentation for various alternatives in %s on line %d
10%E6 -> %C3%A6
11
12Deprecated: Function utf8_decode() is deprecated since 8.2, visit the php.net documentation for various alternatives in %s on line %d
13%E6 <- %C3%A6
14