hjson/hjson-php

Cirillic chars in comments breaks script

Closed this issue · 7 comments

Throws different errors...

Fatal error: Uncaught HJSON\HJSONException: End of input while parsing an array (did you forget a closing ']'?) at line 19, 30 >>>9,

Cannot use any unicode chars in any place, even encoded! =(((

Thanks for the report! We are looking for a PHP developer (see #7). Would you be interested in doing a PR?

@4cc355-d3n13d If you need decode only you can use the alternative implementation: https://github.com/aVadim483/hjson-php

Retarded solution:
I had to add a specific number of ] or space at the end of the hjson file. Weird. :)

Ronef commented

In my case, unicode characters in a multiline string cause the same errors.

What about fixing it?

Ronef commented

@4cc355-d3n13d @biziclop I've fixed it, lets test.

Is fixed, probably by #19.