Camel does not handle special UTF-8 characters correctly on Windows

Solution Verified - Updated -

Issue

When running Camel on Windows certain UTF-8 characters are not handled correctly.
When logging such characters to the console or to the server log file, the are not printed properly but instead substituted.

E.g. "Kản tổng" becomes "K?n t?ng"

The problem does not exist when running the same Camel route on Linux.

How to display and log these UTF-8 characters correctly in Camel?

Environment

  • JBoss Fuse
    • 6.x
    • 7.x
  • Camel
  • Windows
  • UTF-8 charset

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content