ryanmitchell
this change works:
public static function removeUnprintableCharacters($string, $encoding, $printerType)
{
if ($encoding == 'utf-8' || $printerType == 'ethernet')
return $string;
$string = str_replace(array('æ', 'ø', 'å'), array('ae', 'oe', 'aa'), $string);
$string = iconv('utf-8', $encoding.'//translit', $string);
$string = str_replace(array('ae', 'oe', 'aa'), array('æ', 'ø', 'å'), $string);
return $string;
}