[
https://issues.apache.org/jira/browse/CAMEL-3956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13031178#comment-13031178
]
Claus Ibsen commented on CAMEL-3956:
------------------------------------
If we have 3 routes using freemarker
{code}
route1
from X to "freemarker:x?encoding=utf-8"
route2
from Y to "freemarker:y?encoding=iso-8859-1"
route3
from Z to "freemarker:z"
{code}
Then we want the encoding parameter not be shared between the endpoints. So the
first route have utf-8, the 2nd iso-8859-1, and the last route do not have any
encoding set.
This is possible today as the encoding parameter is *per* endpoint.
If you remove that, and use the encoding from Freemarker Configuration, then
that is a *shared* between all endpoints. So that mean when route2 set the
encoding to iso-8859-1, it will override the encoding set by route1. And the
last route will also use the iso-8859-1 encoding, despite it doesnt have any
set.
> Move Default Encoding to Component Class in the FreeMarker Component
> --------------------------------------------------------------------
>
> Key: CAMEL-3956
> URL: https://issues.apache.org/jira/browse/CAMEL-3956
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 2.7.1
> Environment: All Camel environments.
> Reporter: Fernando Ribeiro
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.8.0
>
> Attachments: patch.txt
>
>
> The default encoding should be set in the component class, like the
> contentCache parameter.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira