Skip to content

Commit c96c6bd

Browse files
committed
Editor: Also add utf8 charset to object/material json export.
1 parent c7fd50b commit c96c6bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

editor/js/Sidebar.Material.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ function SidebarMaterial( editor ) {
438438
const left = ( screen.width - 500 ) / 2;
439439
const top = ( screen.height - 500 ) / 2;
440440

441-
const url = URL.createObjectURL( new Blob( [ output ], { type: 'text/plain' } ) );
441+
const url = URL.createObjectURL( new Blob( [ output ], { type: 'text/plain;charset=utf-8' } ) );
442442
window.open( url, '_blank', `location=no,left=${left},top=${top},width=500,height=500` );
443443

444444
} );

editor/js/Sidebar.Object.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ function SidebarObject( editor ) {
412412
const left = ( screen.width - 500 ) / 2;
413413
const top = ( screen.height - 500 ) / 2;
414414

415-
const url = URL.createObjectURL( new Blob( [ output ], { type: 'text/plain' } ) );
415+
const url = URL.createObjectURL( new Blob( [ output ], { type: 'text/plain;charset=utf-8' } ) );
416416
window.open( url, '_blank', `location=no,left=${left},top=${top},width=500,height=500` );
417417

418418
} );

0 commit comments

Comments
 (0)