Closed pmjones closed 7 years ago
When generating from a file with unusual characters, generation of the search index JSON failed silently. This PR fixes that in two ways:
utf8_encode()
json_encode()
@tobiju @sandrokeil Thoughts?
Nope, looks good to me.
When generating from a file with unusual characters, generation of the search index JSON failed silently. This PR fixes that in two ways:
utf8_encode()
to the search strings in JSON so thatjson_encode()
fails less.json_encode()
fails when saving the search index, throw an exception with the last JSON error message and code.