]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/How_to_fix___34__does_not_map_to_Unicode__34___errors__63__.mdwn
Merge branch 'master' into cvs
[ikiwiki.git] / doc / forum / How_to_fix___34__does_not_map_to_Unicode__34___errors__63__.mdwn
1 I'm getting a number of errors like this when running ikiwiki:
2
3     utf8 "\xA2" does not map to Unicode at /usr/local/share/perl/5.10.0/IkiWiki.pm line 739, <$in> chunk 1.
4
5 I think it's because some of my files contain non-utf8, non-unicode, or somehow bad characters in them, probably fancy quotes and the like that have been copy-and-pasted from my web browser. The problem is that I have hundreds of files, I transferred them all over from pyblosxom to ikiwiki at once, and the error message doesn't tell me which file the error comes from. How can I fix this?
6
7 Thanks  
8 -- seanh
9
10 > Unfortunatly, these messages are logged by perl so there's no way to add
11 > a filename to them.
12
13 > If you run the build in --verbose mode, you should see which page ikiwiki
14 > is working on, and unless it inlines some other page, you can be pretty
15 > sure that page contains invalid utf-8 if the message is then printed.
16 >
17 > Another option is to use the `isutf8` program from 
18 > [moreutils](http://kitenet.net/~joey/code/moreutils/),
19 > and run it on each file, it will tell you the line number
20 > and character position that is invalid. --[[Joey]]