]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - Plugson/www/index.html
VentoyPlugson: Fix the garbled preview json for unicode characters.
[Ventoy.git] / Plugson / www / index.html
index 74dccdec89a5e76aa11b1a9e0cddfeebf1b65f38..5b34fc3983b2e55dc1ebed609ccac0b2f83a28bc 100644 (file)
                             \r
                         </div>\r
                         <div class="modal-body">\r
-                            <textarea id="pre_json_preview" class="form-control" rows="30" style="font-family:Menlo,Monaco,Consolas,'Courier New',monospace"></textarea>\r
+                            <textarea id="pre_json_preview" class="form-control" rows="30" style="font-family:Menlo,Monaco,Consolas,'Courier New',monospace" spellcheck="false"></textarea>\r
                         </div>\r
                         <div class="modal-footer">\r
                             <button id="PrewForm_lang_2" type="button" class="btn btn-primary btn-flat" data-dismiss="modal">确定</button>\r
 \r
         <footer class="main-footer">\r
             <div class="pull-right hidden-xs">\r
-                <b id="plugson_build_date">20221021 14:42:35</b>
+                <b id="plugson_build_date">20221117 18:12:12</b>
             </div>\r
             <strong><a href="https://www.ventoy.net" target="_blank">https://www.ventoy.net</a></strong>\r
         </footer>\r
             $('#JsonPeviewForm #JsonPreviewForm_lang_1').text(g_vtoy_cur_language.STR_JSON_PREVIEW);\r
             $('#JsonPeviewForm #PrewForm_lang_2').text(g_vtoy_cur_language.STR_BTN_OK);\r
             \r
-            $('#pre_json_preview').text(atob(data.json));\r
+            $('#pre_json_preview').text(VtoyUTF16HexToAscii(data.json));            \r
             $("#JsonPreviewModal").modal();\r
         });\r
     }\r