theory/pod-simple — pull request #26 by grantm (2012-04-27 07:06:16+00:00)
Title: Whine on first non-ASCII byte-sequence and use it to guess Latin1 vs UTF8

This commit makes two* changes:

If a non-ASCII byte is encountered when no =encoding has been seen, a warning will be generated (first time only).

When the above happens, a heuristic (from perlpodspec) is applied to select UTF-8 encoding if the non-ASCII bytes form a valid UTF-8 byte sequence, or Latin-1 otherwise.

* I would not normally change two pieces of functionality with one commit however the second change conveniently sets a flag which enables the warning to only occur on the first non-ASCII byte.