It is currently March 28th, 2024, 12:26 pm

New "Create new skin" button

Changes made during the Rainmeter 4.0 beta cycle.
Post Reply
User avatar
jsmorley
Developer
Posts: 22628
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: 305
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: 2673
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
User avatar
killall-q
Posts: 305
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
Post Reply