Skip to content
Permalink
Browse files

Fix download of long strings with unicode characters

  • Loading branch information...
dvdbng committed Jan 18, 2016
1 parent 01cdeb4 commit efd277c85aa038b17d688b0ee6ffba2c1b0d9532
Showing with 1 addition and 1 deletion.
  1. +1 −1 splash/ui/main.js
@@ -156,7 +156,7 @@ function renderString(s, $cnt) {
$cnt.append('String (length ' + s.length + ')').append(
$('<a/>').addClass('action').text('download')
.attr('download', splash.pageName + '.txt')
.attr('href', "data:text/plain;base64," + btoa(s))
.attr('href', "data:text/plain;charset=utf-8," + encodeURI(s))
.text('download')
).append(
$('<div/>').addClass('indent').append(

0 comments on commit efd277c

Please sign in to comment.
You can’t perform that action at this time.