Skip to content

Conversation

@roslovets
Copy link
Contributor

Hi, I faced a problem with UTF-8 json files containing Russian letters, so I added an Encoding option to loadjson and savejson to successfully work with them. Example:

data = loadjson('file.json', 'Encoding', 'UTF-8');
savejson('', data, 'FileName', 'file.json', 'Encoding', 'UTF-8');

I think this will help many people.

P.S. Thank you for this library!

@fangq
Copy link
Member

fangq commented Jul 18, 2019

cool, thank you

just one minor request - before I merge the changes, can you set your editor with a tab width of 8 and align the indentations for the new codes?

thanks, I will merge once the indentations are fixed.

@roslovets
Copy link
Contributor Author

I have fixed the identation.

@fangq fangq merged commit 6f0e740 into NeuroJSON:master Jul 21, 2019
@fangq
Copy link
Member

fangq commented Jul 21, 2019

thank you, merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants