Missing 'name' from library - SOLVED - library.properties was NOT UTF-8

I have tried to create a library by following https://www.arduino.cc/en/Hacking/LibraryTutorial , but my library with my names in a directory is deemed by the compiler to be invalid with a Missing 'name'.

Currently the library does nothing it is just the morse library from the tutorial hacked with different names. I would like to be able to load it before I go any further.

My library sits in the Arduino/library directory has a cpp and a h file and a library.properties file

mybuttons.ino is a test program that compiles and runs without error

when my lib is referenced with
#include <btnlib.h>

I get compiler error
Invalid library found in C:\Program Files (x86)\Arduino\libraries\btnlib: Missing 'name' from library

btnlib.zip (797 Bytes)

The problem is the encoding settings of the text editor you used on the library.properties file. It's in UTF-8-BOM encoding which causes that warning. You need to change it to UTF-8. If that's not possible with the editor you're using then you need to find an editor suitable for programming.

If only I had edited the properties file in Visual Studio instead of notepad.

I guess I should have twigged when it was one great big long string.

Ah well one lives and sometimes learns.

pert Thank you very much for your prompt and accurate answer.

Having got it to compile I had expected that the library would have been listed in the Sketch>Include Library list - but its not there.

My test program complies on both the Arduino IE and in Visual Studio with VMicro, VMicro also does not show the library in the list.

Do you have to do something special to get it in the list.

You're certainly not the first who has suffered at the hands of that darned notepad!

gc_malcolm:
Having got it to compile I had expected that the library would have been listed in the Sketch>Include Library list - but its not there.

It's missing a few required properties: version, maintainer, and paragraph. They seem to have somehow gotten garbled onto other properties.

I thought I had fixed them all

I guess I am rather surprised that it compiled anyway

Thanks very much, again!

Latest resolution
I had copied another library.property over to fix earlier issues and then failed to change the name when editing it. So the file was now utf-8 but it had the wrong name for the library, so the library was presumably listed, just not as the name I expected. grrrr silly me