Uploaded image for project: 'Torque'
  1. Torque
  2. TORQUE-49

Encoding will not be used in insert-sql if it is used in generation task

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.2
    • 3.3
    • Generator
    • None

    Description

      My schema.xml is encoded in UTF-8 and torque generates a SQL file in UTF-8. But when I run "insert-sql" the TorqueSQLExec task decodes the file with the system encoding because it doesn't know that the SQL file was encoded in UTF-8.

      My current solution is to set the attribute encoding="UTF-8" in the "torque-sql-exec" task call in my build-torque.xml.

      But I think torque should know the encoding of the files that it generates. It could be set (for example) in the sqldb.map file or by using special filename extension like .utf8.sql

      Attachments

        Activity

          People

            tfischer Thomas Fox
            trickert Thoralf Rickert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: