Pop quiz: characters or bytes?
- Generating HTML
- Characters
- E.g.: Template Toolkit:
my $template = Template->new({ ENCODING => 'utf8', }); binmode(STDOUT, ':utf8');
- PSGI expects the body to be bytes
my $template = Template->new({ ENCODING => 'utf8', }); binmode(STDOUT, ':utf8');