Camel
  1. Camel
  2. CAMEL-1278

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.6.0, 2.0-M1
    • Component/s: camel-velocity
    • Labels:
      None
    • Patch Info:
      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

        Activity

        Jeff Turner made changes -
        Project Import Sat Nov 27 00:14:50 EST 2010 [ 1290834890113 ]
        Claus Ibsen made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Jeff Turner made changes -
        Fix Version/s 1.6.0 [ 11991 ]
        Hadrian Zbarcea made changes -
        Fix Version/s 2.0.0 [ 11900 ]
        Fix Version/s 2.0-M1 [ 12061 ]
        Fix Version/s 1.6.0 [ 11991 ]
        Jonathan Anstey made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0.0 [ 11900 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 1.5.1 [ 11991 ]
        Jonathan Anstey made changes -
        Assignee Jonathan Anstey [ janstey ]
        Damian Golda made changes -
        Field Original Value New Value
        Attachment VelocityEndpoint.diff [ 17533 ]
        Damian Golda created issue -

          People

          • Assignee:
            Jonathan Anstey
            Reporter:
            Damian Golda
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development