Made some progress. Velocity jar in m2 repository includes velocity.properties file which is used for configuring velocity. There are two properties in there

#----------------------------------------------------------------------------
# T E M P L A T E  E N C O D I N G
#----------------------------------------------------------------------------

input.encoding=ISO-8859-1
output.encoding=ISO-8859-1

This seems to be the root of all evil. I extracted properties file, changed the encodings to utf-8, but where do I put this velocity.properties file to be picked up and take precedence over the one packaged in velocity jar in the course of building with mvn site?

-Borut

On 3.3.2006 13:56, Borut Bolčina wrote:
Nope, I have encoding set to UTF-8 in pom xml prolog. It must be something with Velocity I guess. The HTML rendering engine is correctly setting the
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

in generated doc pages, but the content is screwed before.
  
UTF-8 is the default XML files encoding, just in case I explicitly declared it in both pom and xdoc xml files.

Any other idea?

-Borut

On 3.3.2006 13:16, Alexandre Poitras wrote:
Check that all your pom are encoded using UTF-8 (<?xml version="1.0"
encoding="UTF-8">). It was a problem in my case with ISO-8859-1 but I
don't know in your case since UTF-8 is usually the default encoding.

On 3/3/06, Borut Bolčina <[EMAIL PROTECTED]> wrote:
  
Hello again,

although setting output encoding to utf-8 which is also the encoding of
my xdoc custom site documentation files, HTML output is garbled.

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-site-plugin</artifactId>
    <configuration>
        <outputEncoding>utf-8</outputEncoding>
    </configuration>
</plugin>

The HTML generated treats utf-8 double-byte encoded characters as
single-byte, so a character like č is displayed as ÄŤ. It is not browser
related issue.

Is there a setting somewhere to tell the rendering engine what encoding
the input files are? IMO utf-8 should be the default.

Regards,
Borut


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


    


--
Alexandre Poitras
Québec, Canada
  

--
bLOG
--
Naključna izjava tedna iz tednika Mladina:

--
bLOG
--
Naključna izjava tedna iz tednika Mladina:

Reply via email to