try utf again
authorAlan Knowles <alan@roojs.com>
Wed, 16 Dec 2020 02:45:33 +0000 (10:45 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 16 Dec 2020 02:45:33 +0000 (10:45 +0800)
seed/toSVG.js

index db50f64..b95cbd7 100644 (file)
@@ -282,7 +282,7 @@ function toSVG() {
     svg += '</svg>';
 
     
-    return svg.replace(/[\u00A0-\u2666]/g, function(c) {
+    return svg.replace(/[\u00ff-\uffff]/g, function(c) {
         return '&#'+c.charCodeAt(0) + ';';
     });