mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixes crash for entries
This commit is contained in:
@@ -120,6 +120,7 @@ end
|
||||
|
||||
def clean_json_string(str)
|
||||
# Remove non-UTF-8 characters and unexpected control characters
|
||||
cleaned_str = str
|
||||
cleaned_str = str.encode('UTF-8', 'binary', invalid: :replace, undef: :replace, replace: '') if !$PokemonSystem.on_mobile
|
||||
|
||||
# Remove literal \n, \r, \t, etc.
|
||||
|
||||
Reference in New Issue
Block a user