KMiNT21: Personal Blog
  • Home
  • About

MailTwitterFacebookFlickr
Jul 24 2016

Template Toolkit – Wide character in print error

Posted by KMiNT21
Tweet

If you are using perl Template::Toolkit you can get this error in output:

Template Toolkit output: Wide character in print at /usr/local/lib/perl5/....mach/Template.pm line xxx

It’s usually because you have some Unicode characters like “ ’ — etc in your templates.

To avoid this you should:

  1. use on input utf-8 encoded (with BOM) template files
  2. add –binmode:=utf8 to args when calling ttree (ex: ttree –binmode:=utf8 -f tree.cfg)

Comment this post if it helped you.

Comments

comments

No comments yet.

Add a comment Cancel Reply

20 + 16 =

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Languages

  • English

ABOUT ME

Hi there. It's blog about my life and all related to it. You can find my posts about IT, foto, soccer, traveling, music etc here...

Recent Posts

  • Flexible Chaplin
  • ESP-12E
  • Template Toolkit – Wide character in print error
  • I have never seen it before!
  • My test of car camcoder GS8000l from Aliexpress

Recent Comments

  • KMiNT21 on Game development difficulties: Gameplay

FROM TWITTER

Flickr Photos

Categories

  • Football
  • Foto
  • Microbiology
  • Seo
  • Uncategorized

FROM TWITTER

Flickr Photos

Connect

Twitter
Facebook
Google+
Flicker
LinkedIn
Vk.com

  • English