-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
parse: do not escape all non-ascii bytes
g_strescape will transform utf-8 strings in a sequence of escaped octal numbers in form of a string. That happens because g_strescape will escape the range from 0x7f to 0xff. For example, "áéí" will become "\\303\\241\\303\\251\\303\\255". Pure ASCII strings are not affected by it. Add all the range 0x7f-0xff to the exception list.
- Loading branch information
1 parent
2945ea3
commit 2fda0a0
Showing
2 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters