Menu

#383 XML files can use wrong encoding

closed-fixed
None
Windows
5
2016-10-10
2014-11-25
No

OpenJUMP writes sometimes XML files which claim in the header that encoding is
encoding="UTF-8" but still the contents in the XML body may use some other encoding.
Tested with Windows with Finnish locale.

JML files suffered from the same issue but that has been fixed. From the OJ change log:
2014-10-20 ede * fix JML (GML/FME etc.)
reader/writer did not properly read/write UTF-8

However, it appears that the fix did not fix
- JMP project files
- FME GML
- KML

I am not sure about GML2 because I still do not understand how to use the templates which are needed before saving is possible.

Saving styles into SLD gives valid XML files.

Related

Bugs: #383

Discussion

  • michael michaud

    michael michaud - 2014-12-20

    Should be fixed for JMP, FME-GML and KML.
    Please test

     
    • ede

      ede - 2014-12-21

      Mike,

      did you doublecheck the readers for these formats as well? i suppose if writing UTF-8 wasn't enforced, reading suffers from the same weakness.

      ..ede

      On 20.12.2014 11:54, michael michaud wrote:

      Should be fixed for JMP, FME-GML and KML.
      Please test


      [bugs:#383] XML files can use wrong encoding

      Status: open
      Created: Tue Nov 25, 2014 09:26 AM UTC by Jukka Rahkonen
      Last Updated: Tue Nov 25, 2014 09:26 AM UTC
      Owner: nobody

      OpenJUMP writes sometimes XML files which claim in the header that encoding is
      encoding="UTF-8" but still the contents in the XML body may use some other encoding.
      Tested with Windows with Finnish locale.

      JML files suffered from the same issue but that has been fixed. From the OJ change log:
      2014-10-20 ede * fix JML (GML/FME etc.)
      reader/writer did not properly read/write UTF-8

      However, it appears that the fix did not fix
      - JMP project files
      - FME GML
      - KML

      I am not sure about GML2 because I still do not understand how to use the templates which are needed before saving is possible.

      Saving styles into SLD gives valid XML files.

       

      Related

      Bugs: #383

      • michael michaud

        michael michaud - 2014-12-21

        OK, I now have fixed reading code.
        OpenJUMP should always write xml files declaring AND writing utf-8.
        and should be able to read them whether they are encoded in UTF-8 or another charset.
        I did a few tests with jmp (projects), jml, fme-gml and kml.
        Please, test more, especially on different OS.

         
  • Bernd Wehle

    Bernd Wehle - 2015-02-04

    we have a few problems with project files and their encoding in different revisions.
    A report and 2 project files are included in the ZIP.
    We works with windows-xp (32bit), java is 1.7.0_51-b13

     
    • ede

      ede - 2015-02-04

      this is supposed to be fixed in the snapshots.. did you try the latest?

      note: old project files won't be fixed. you have to create and load new ones.

      ..ede

      On 04.02.2015 16:22, Bernd Wehle wrote:

      we have a few problems with project files and their encoding in different revisions.
      A report and 2 project files are included in the ZIP.
      We works with windows-xp (32bit), java is 1.7.0_51-b13

      Attachment: 2015_02.zip (61.7 kB; application/x-zip-compressed)


      [bugs:#383] XML files can use wrong encoding

      Status: open
      Created: Tue Nov 25, 2014 09:26 AM UTC by Jukka Rahkonen
      Last Updated: Sat Dec 20, 2014 10:54 AM UTC
      Owner: nobody

      OpenJUMP writes sometimes XML files which claim in the header that encoding is
      encoding="UTF-8" but still the contents in the XML body may use some other encoding.
      Tested with Windows with Finnish locale.

      JML files suffered from the same issue but that has been fixed. From the OJ change log:
      2014-10-20 ede * fix JML (GML/FME etc.)
      reader/writer did not properly read/write UTF-8

      However, it appears that the fix did not fix
      - JMP project files
      - FME GML
      - KML

      I am not sure about GML2 because I still do not understand how to use the templates which are needed before saving is possible.

      Saving styles into SLD gives valid XML files.


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/jump-pilot/bugs/383/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #383

  • michael michaud

    michael michaud - 2016-10-10
    • status: open --> closed-fixed
    • assigned_to: michael michaud
     

Log in to post a comment.