If you have UTF8, use this (actually works with SVG source), like: btoa(unescape(encodeURIComponent(str))) example: var imgsrc = 'data:image/svg+xml;base64, ...
確定! 回上一頁