1--TEST--
2sapi_windows_cp_conv basic functionality
3--SKIPIF--
4<?php
5if (PHP_OS_FAMILY !== 'Windows') die('skip for Windows only');
6if (!sapi_windows_cp_set(1252) || !sapi_windows_cp_set(65001)) die('skip codepage not available');
7?>
8--FILE--
9<?php
10var_dump(
11    bin2hex(sapi_windows_cp_conv(65001, 1252, 'äöü')),
12    bin2hex(sapi_windows_cp_conv('utf-8', 1252, 'äöü')),
13    bin2hex(sapi_windows_cp_conv(65001, 'windows-1252', 'äöü')),
14    bin2hex(sapi_windows_cp_conv('utf-8', 'windows-1252', 'äöü')),
15);
16?>
17--EXPECT--
18string(6) "e4f6fc"
19string(6) "e4f6fc"
20string(6) "e4f6fc"
21string(6) "e4f6fc"
22