Page 1 of 1

New "Create new skin" button

Posted: November 27th, 2016, 2:30 pm
by jsmorley

Re: New "Create new skin" button

Posted: November 27th, 2016, 7:54 pm
by killall-q
The generated skin .ini file has a zero width non-breaking space (U+FEFF) as the first character before [Rainmeter].

Re: New "Create new skin" button

Posted: November 28th, 2016, 5:04 am
by Brian
This is the BOM. https://en.wikipedia.org/wiki/Byte_order_mark#Representations_of_byte_order_marks_by_encoding
All UTF-16LE encoded files have this at the beginning of a file.
UTF-16BOM.png
BTW - As you can see, it is U+FFFE, not U+FEFF.

-Brian

Re: New "Create new skin" button

Posted: November 28th, 2016, 7:18 am
by killall-q
Ah, I was only able to see it due to Brackets' poor handling of Unicode. I converted another skin to UTF-16LE and saw the same thing. I use UTF-8 whenever possible for the smaller file size.

BTW, because in little endian the least significant bits are on the left, the Unicode character is U+FEFF. Just 2 characters over, the "R" is not U+5200, but U+0052 (same as ASCII 52).

https://en.wikipedia.org/wiki/Byte_order_mark#UTF-16