Cirillic chars in comments breaks script
Closed this issue · 7 comments
4cc355-d3n13d commented
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,
4cc355-d3n13d commented
Cannot use any unicode chars in any place, even encoded! =(((
laktak commented
Thanks for the report! We are looking for a PHP developer (see #7). Would you be interested in doing a PR?
aVadim483 commented
@4cc355-d3n13d If you need decode only you can use the alternative implementation: https://github.com/aVadim483/hjson-php
biziclop commented
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.