Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-1278

VelocityEndpoint reads velocity templates using default encoding - add parameter to set encoding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.6.0, 2.0-M1
    • camel-velocity
    • None
    • Patch Available

    Description

      VelocityEndpoints reads templates using default encoding, so I cannot get correct content while running on Windows and Linux.

      The reason is that there is used InputStreamReader constructor without encoding parameter.

      I've added simple support for setting encoding - see attached patch

      Attachments

        1. VelocityEndpoint.diff
          1 kB
          Damian Golda

        Activity

          People

            janstey Jonathan Anstey
            dgolda Damian Golda
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: