IATI / CSV2IATI

[DEPRECATED ] - A tool to convert CSVs to IATI XML
Other
5 stars 4 forks source link

json file: the combination of "multiple data strcture" and "encoding" lead to different results #199

Closed Miaaj closed 2 years ago

Miaaj commented 10 years ago

Input json file contains:

  1. Multiple data structure Encoding: ascii, overriding utf-8
  2. No multiple data structure Encoding: utf-8
  3. Multiple data structure Encoding: utf-8 Results:
  4. Perfect
  5. Perfect
  6. Infinite loop

Code details:

Handle multiple data structure

if ("data-structure" in o) and ("multiple" in o["data-structure"]) and (o["data-structure"]["multiple"] != ""):

.......

Bjwebb commented 9 years ago

When I looked at this in July, I found that it's probably not an infinite loop, just a loop that lasts a long time for some files.

I created this commit to remove the ordering, on a new branch, which was sufficient for this particular use case.

Since the commit removes ordering, it is not ready to be merged into a main branch. I don't think I will have time to fix this fully before my work on CSV2IATI finishes, so I am unassigning myself.