It is currently February 25th, 2020, 12:17 am

New "Create new skin" button

Changes made during the Rainmeter 4.0 beta cycle.
User avatar
jsmorley
Developer
Posts: 20280
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

New "Create new skin" button

Post by jsmorley »

User avatar
killall-q
Posts: 284
Joined: August 14th, 2009, 8:04 am

Re: New "Create new skin" button

Post by killall-q »

The generated skin .ini file has a zero width non-breaking space (U+FEFF) as the first character before [Rainmeter].
User avatar
Brian
Developer
Posts: 1953
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: New "Create new skin" button

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
killall-q
Posts: 284
Joined: August 14th, 2009, 8:04 am

Re: New "Create new skin" button

Post 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