Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode improvements #131

Merged
merged 3 commits into from
Feb 20, 2018
Merged

Conversation

gomoripeti
Copy link
Collaborator

fixes #127

`jsone:encode` expects strings as utf-8 encoded binaries. However if
printable range is set to latin1 (which is the default; printable range
is a global setting and can only be changed at VM start, see `erl
+pc`), `io_lib:format` can output characters in the range 128-255. These
are valid bytes (so can be converted with `list_to_binary/1`) but
invalid utf-8 bytes. Use the `unicode` module instead to convert such
characters to multi-byte representation.

fixes Appliscale#127
Also when formatting terms and exceptions pretty print characters also
above 255 if the VM is started with unicode printable range. (t unicode
translation modifier)
@gomoripeti gomoripeti merged commit 19978b7 into Appliscale:release_2.0 Feb 20, 2018
@gomoripeti gomoripeti deleted the unicode_binstr branch February 20, 2018 09:28
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