slorelee / wimbuilder2

wimbuilder with new UI & new syntax (hta+bat+vbs+js)
475 stars 104 forks source link

Unicode encoding :: UTF-8 or UTF-16(w or w/o BOM) #4

Closed nonamemanSEO closed 5 years ago

nonamemanSEO commented 5 years ago

This may not be crucial, but I've run into errors some times when running the WimBuilder. It depends on what kind of encoding the new file the editor software creates. If you have a recommended encoding option , let me know. I use Notepad 3 mainly. Now It seems to have no error after changing to default setting with UFT-16 LE BOM encoding.

slorelee commented 5 years ago

Hi, first the encoding is UTF-8, but it needs ADODB.Stream COM, which is not present in origin winre.wim.

WimBuilder2 can be used in origin winre.wim, so I remove the ADODB dependency, change all resouces files to UTF-16LE BOM.

// remove ADODB dependency, i18n resources files' encoding need to be UTF-16LE BOM

https://github.com/slorelee/wimbuilder2/blob/4b3112783fdd6acda4a0c6c4463d810d15489747/assets/htakit/js/lib/fso.js#L10

nonamemanSEO commented 5 years ago

Hi, first the encoding is UTF-8, but it needs ADODB.Stream COM, which is not present in origin winre.wim.

WimBuilder2 can be used in origin winre.wim, so I remove the ADODB dependency, change all resouces files to UTF-16LE BOM.

// remove ADODB dependency, i18n resources files' encoding need to be UTF-16LE BOM

wimbuilder2/assets/htakit/js/lib/fso.js

Line 10 in 4b31127

// remove ADODB dependency, i18n resources files' encoding need to be UTF-16LE BOM

HaHaHa~ ^ 0 ^ I thought I've seen it somewhere but I haven't found it again. I will always cheer you on to make your coding perfect.