Skip to content

Commit

Permalink
Editor: Also add utf8 charset to object/material json export.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Mar 19, 2024
1 parent c7fd50b commit c96c6bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Material.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ function SidebarMaterial( editor ) {
const left = ( screen.width - 500 ) / 2;
const top = ( screen.height - 500 ) / 2;

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

} );
Expand Down
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Object.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ function SidebarObject( editor ) {
const left = ( screen.width - 500 ) / 2;
const top = ( screen.height - 500 ) / 2;

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

} );
Expand Down

0 comments on commit c96c6bd

Please sign in to comment.