This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I have problem with encoding in smarty templates in Netbeans 7 RC 2. I have project in ISO-8859-2, but Netbeans save files in UTF-8. I don't have any warnings. Greetings Kamil
*** Bug 197615 has been marked as a duplicate of this bug. ***
I also have this problem it is annoying because I have some projects not in UTF-8 but in ISO-8859-2
I use netbeans 7.0 problem exists when you open file in other encoding everything looks ok, but when you save it it saves in other encoding propably in UTF-8 and then opening again the file and charackers which are nor standard are broken, I have to turn off thsi plugin to work with netbeans
I've contacted with author of this plugin. He said that other encodings are not implemented yet...
From user aoglib: > When the plugin is ON I can't work, because of in the text often found of > Cyrillic characters and even files encoded in 1251. I have nothing against the > UTF8, however, the majority of projects supported me in 1251. Therefore, there > is a huge, critical issue. I must disable this plugin to work with files. > Please, fix this problem I'm increasing priority to P2.
Same problem for me since upgraded to NB 7. Projects in ISO-8859-1, after saving, tpl files are converted to UTF8, specials chars are broken. I have to disable the plugin too...
*** Bug 200185 has been marked as a duplicate of this bug. ***
*** Bug 199661 has been marked as a duplicate of this bug. ***
OK, should be fixed by this changset: http://hg.netbeans.org/main/contrib/rev/b160e2055090 I used encoding support from HTML, since it should be very similar to TPL templates. So if you will have any charset specified (according to html specification) in the header of the .tpl file it will be stored according to this charset. If there will not be anything specified the project charset will be used. So you have to have correct encoding set in in project properties of your PHP project. BTW, can anybody try that and verify in the dev versions of netbeans/smarty plugins. It's implemented in version 1.56 (should be available on dev UC on Monday/Tuesday). Thanks.
(In reply to comment #9) > OK, should be fixed by this changset: > http://hg.netbeans.org/main/contrib/rev/b160e2055090 > > I used encoding support from HTML, since it should be very similar to TPL > templates. > > So if you will have any charset specified (according to html specification) in > the header of the .tpl file it will be stored according to this charset. If > there will not be anything specified the project charset will be used. So you > have to have correct encoding set in in project properties of your PHP project. > > BTW, can anybody try that and verify in the dev versions of netbeans/smarty > plugins. It's implemented in version 1.56 (should be available on dev UC on > Monday/Tuesday). Thanks. Hi, i've just installed the 1.57 version. Tested and approved, works fine. (Encoding set in project properties). I can re-use this (very usefull) plugin now. Thanks for the update.
Good to know, thanks.
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/f61845b35af7 User: Martin Fousek <marfous@netbeans.org> Log: #197609 - Problem with other encodings than UTF8
*** Bug 200508 has been marked as a duplicate of this bug. ***