Name

output_convert — Outputs data for display, converting charset.

Synopsis

      $model->output_convert(output => {foo => $utf8_text},
			     input_charset => 'UTF-8');
     

Description

This is a wrapper to the output method. It converts the output from the character set specified by the charset argument to default_output_charset. If the character set is not specified, then default_input_charset is used.

Examples

      # converts from UTF-8
      $model->output_convert(output => { key => $utf8_text },
			     charset => 'UTF-8');
      # converts from default_input_charset
      $model->output_convert(key => $text)