4
votes

I have problem with localization my addon. I followed this tutorial on Using Localized Strings in Preferences but I can't compile my addon because I use polish characters ć and others.

I've made locale folder and put there pl-PL.properties file with this content:

my_tag_title = Co robić?

and I got error:

Following locale file is not a valid UTF-8 file: C:\path\pl-PL.properties
'utf8' codec can't decode byte 0xe6 in position 22: invalid continuation byte"

Is there way to put special characters directly inside package.json?

How to solve this problem?

1
Are you sure you saved the file in UTF-8? - JJJ
No, I had to convert file from ANSI to UTF-8 without BOM and it started working. Post your comment as answer, I will accept it. - Tomasz Dzięcielewski

1 Answers

4
votes

Make sure that the locale file is saved in UTF-8 format.