<?php

$c = new UConverter('utf-8', 'latin1');
var_dump(UConverter::LATIN_1 === $c->getSourceType());
var_dump(UConverter::UTF8    === $c->getDestinationType());
$c = new UConverter('koi8-r', 'utf-32be');
var_dump(UConverter::UTF32_BigEndian === $c->getSourceType());
var_dump(UConverter::SBCS            === $c->getDestinationType());
