Building R9 with maven --> error: unmappable character for encoding UTF-8

654 views
Skip to first unread message

Robert Vogel

unread,
Jul 19, 2012, 5:26:42 AM7/19/12
to flying-s...@googlegroups.com
Hi!

First of all, a few environment informations:
  • Windows 7, SP1
  • JDK 1.7.0.05
  • Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)

Today I downloaded the tag "9.0.0" (https://github.com/flyingsaucerproject/flyingsaucer/zipball/9.0.0) from github and tried to compile it using maven. In the first run I encountered the following error:

[ERROR] [...]\flying-saucer-core\src\main\java\org\xhtmlrenderer\context\StandardAttributeResolver.java:3: error: unmappable character for encoding UTF-8
[ERROR] * Copyright (c) 2004, 2005 Torbj?rn Gannholm

The full output is attached to this post.

The good news: I was able to solve the problem and it is very simple. I just modified the main pom.xml and changed the line 95

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

to

<project.build.sourceEncoding>Cp1252</project.build.sourceEncoding>

But I am not sure if this is a good solution, so maybe someone can give me some advice on this.

I also found an ancient disucssion in the markmail archives: http://markmail.org/message/hjiptcintseq3nbh#query:+page:1+mid:kdnt446lvwfifs2n+state:results
Maybe it would be good to change the encoding of the involved files?

Best regards,
Robert


flyingsaucer-9.0.0-262c96b.log

Patrick Wright

unread,
Jul 19, 2012, 5:47:23 AM7/19/12
to flying-s...@googlegroups.com
Hi

personally, I think we should use the correct character and ensure all
files are in UTF-8 and fix the spelling of tobe's name where
necessary.

My guess is that the encoding of some files got mangled in moving
between boxes and sharing files; and we never used to enforce the
encoding at all AFAIR.

Cheers
P

Peter Brant

unread,
Jul 19, 2012, 3:59:55 PM7/19/12
to flying-s...@googlegroups.com
Weird.  I'm surprised it worked on Linux.  I've converted Torbjoern's name to ASCII and committed the result.

Pete

Robert Vogel

unread,
Jul 20, 2012, 3:44:44 AM7/20/12
to flying-s...@googlegroups.com
Hi Pete,

Thanks a lot :)

greetings,
Robert
Reply all
Reply to author
Forward
0 new messages