ST25DV icon indicating copy to clipboard operation
ST25DV copied to clipboard

NDEF_WriteText function is missing language and encoding parameters

Open Gerriko opened this issue 2 years ago • 1 comments

The NDEF_WriteText function only allows for "en" language option via ISO_ENGLISH_CODE_STRING. There is no way to include other languages, like "de" for example.

It is also unclear whether the function has simply assumed it is UTF-8 encoding as I cannot see this specified in the code. Usually you have the option to specify either UTF-8 or UTF-16.

Gerriko avatar Dec 18 '22 13:12 Gerriko

Hello @Gerriko , you are right. At the moment these settings are hardcoded. We need to enhance the library to support also these features. I guess that the default settings is UTF-8 (encoding bit = 0). Any contribution is welcome to improve the library. Best Regards, Carlo

cparata avatar Dec 19 '22 10:12 cparata