navinpeiris / jsca2js

Utility to convert JSON in Appcelerator's JSCA format to JavaScript
74 stars 24 forks source link

Error with parsing 3.4.0 #14

Closed caspahouzer closed 10 years ago

caspahouzer commented 10 years ago

Hi!

I got an error parsing the newest SDK json 3.4.0

Retrieving Titanium JSCA API for version: 3.4.0
100.0% 24731648 / 24723669
Converting API to JavaScript
Writing JavaScript to file: titanium-js/titanium-mobile-3.4.0.js
Traceback (most recent call last):
  File "titanium-mobile.py", line 124, in <module>
    main()
  File "titanium-mobile.py", line 118, in main
    writeJsFile(javascript, outputFilePath)
  File "titanium-mobile.py", line 63, in writeJsFile
    file.write(content)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 443792: ordinal not in range(128)

Could you please fix it? Thanks in advance!

CTOlet commented 10 years ago

I have got that error too! )-:

navinpeiris commented 10 years ago

Hey guys, this has now been fixed by commit c0f1c4fc493c50a674e4018dd73f58bd7e7f8110

Take a look and let me know if you still have any troubles

CTOlet commented 10 years ago

Thankee!