Veronica Padrón wrote:
I´ve a problem with jetspeed 2.0, because I cannot change the encoding to ISO-
8859-1

I had changed the jetspeed.properties, and include the line:
content.defaultencoding=ISO-8859-1

This is no longer used

I had changed the velocity.properties, and include the lines:
template.encoding=iso-8859-1
input.encoding =iso-8859-1

and nothing......

the encoding of my pages is UTF-8

Please, something can I help me????

Take a look at the CapabilitiesValveImpl:

       String agent = request.getRequest().getHeader("User-Agent");

        // Get capability map
        CapabilityMap cm = capabilities.getCapabilityMap(agent);
        MediaType mediaType = cm.getPreferredMediaType();
        MimeType mimeType = cm.getPreferredType();

        String encoding = request.getRequest().getCharacterEncoding();

....

        String encoding = request.getRequest().getCharacterEncoding();

        if (encoding == null)
        {
            if (mediaType != null && mediaType.getCharacterSet() != null)
            {
                encoding = mediaType.getCharacterSet();
            }
        }


Most likely, you are getting your encoding from the Jetspeed Capabilities settings, coming from MEDIA_TYPE table data



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

Reply via email to