# StringToUpper

This filter converts any input to be uppercased.

    $filter = new Zend_Filter_StringToUpper();

    print $filter->filter('Sample');
    // returns "SAMPLE"

Like the `StringToLower` filter, this filter handles only characters from the actual locale of your server. Using different character sets works the same as with `StringToLower`.

    $filter = new Zend_Filter_StringToUpper(array('encoding' => 'UTF-8'));

    // or do this afterwards
    $filter->setEncoding('ISO-8859-1');