Permalink
Browse files

The second example in the synopsis requires utf8 to be turn on for th…

…e file.
  • Loading branch information...
1 parent 40f8b72 commit eeae6e1e31e4c28da9610c847865021451915fc9 @potyl potyl committed Jan 29, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/XML/Char.pm
View
3 lib/XML/Char.pm
@@ -12,7 +12,8 @@ XML::Char - validate characters for XML
if (not XML::Char->valid("bell ".chr(7))) {
die 'no way to store this string directly to XML';
}
-
+
+ use utf8;
use XML::Char;
if (XML::Char->valid("UTF8 je pořádný peklo")) {
print "fuf, we are fine\n";

0 comments on commit eeae6e1

Please sign in to comment.