grit: format output using UTF-8
Since Chrome is the only thing that loads these files, there's no need to force them to use JSON escapes for non-ASCII Unicode codepoints. Just use native UTF-8 encoding everywhere (especially since all the files already have Unicode BOM's in them!). It shouldn't make the readability of the files worse. If anything, it should improve it greatly, especially relative to the source grd files (which use UTF-8), and for native readers. Example delta for Arabic: CHROMEVOX_COLUMN_GRANULARITY - "\u0639\u0645\u0648\u062f" + "عمود" On a Pixelbook, converting all the messages.json files in this way shaves off ~1.4MiB. Bug: 852585 Change-Id: I1978141717bbd69aec5a72c9d6769c6998419c1b Reviewed-on: https://chromium-review.googlesource.com/1099881Reviewed-by:agrieve <agrieve@chromium.org> Commit-Queue: Mike Frysinger <vapier@chromium.org> Cr-Commit-Position: refs/heads/master@{#567085}
Showing
Please register or sign in to comment