openhab-scripters / openhab-helper-libraries

Scripts and modules for use with openHAB
Eclipse Public License 1.0
88 stars 68 forks source link

Enable unicode character handling without the hassle #356

Closed marcinczeczko closed 3 years ago

marcinczeczko commented 3 years ago

I'd like to propose this changes to handle unicode strings without the hassle. It's very useful for situation where items are created via jython scripts, and item label suppose to be in the language that uses unicode characters (e.g. polish, german, etc.)

5iver commented 3 years ago

Thank you for submitting this, but there are several reasons why I will not include unicode_literals. You can easily look those up on the Internet. Unicode is very easy for users to deal with once they have an understanding of how to use it in their rules. I've also recently submitted PRs that allow unicode to be used for Item names, rule names, logging, etc., so there should not be a need to change the code. I have a documentation update coming, and I will try to fill in some more details about the use of unicode. I'll be very interested to know what you think.