[
https://issues.apache.org/activemq/browse/CAMEL-2712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59299#action_59299
]
Willem Jiang commented on CAMEL-2712:
-------------------------------------
oh, I already committed the code, it just a single line's change.
{code}
---
camel/trunk/camel-core/src/main/java/org/apache/camel/converter/IOConverter.java
(original)
+++
camel/trunk/camel-core/src/main/java/org/apache/camel/converter/IOConverter.java
Wed May 12 07:05:19 2010
@@ -338,7 +338,7 @@ public final class IOConverter {
}
public static String getDefaultCharsetName() {
- return Charset.defaultCharset().toString();
+ return "UTF-8";
}
/**
{code}
It just make sure we treat the default string with UTF-8 encoding, we did the
same thing in the XMLConverter
{code}
public static String defaultCharset =
ObjectHelper.getSystemProperty(DEFAULT_CHARSET_PROPERTY, "UTF-8");
{code}
> The default charset name should be UTF-8
> ----------------------------------------
>
> Key: CAMEL-2712
> URL: https://issues.apache.org/activemq/browse/CAMEL-2712
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Willem Jiang
> Assignee: Willem Jiang
> Fix For: 1.6.3, 2.3.0
>
>
> Current camel just use the below code to return the defaultCharset.
> {code}
> Charset.defaultCharset().toString();
> {code}
> It will cause some trouble if there are two boxes with different
> defaultCharset want to talk to each other with default setting.
> By setting the defaultCharset to be UTF-8 will work around this kind of issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.