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.
Created attachment 119444 [details] Incorrect Remote Diff with UTF-8 files When I click Synchronize, I received a lot of warnings, all them relation with UTF-8. Example: # This patch file was generated by NetBeans IDE # It uses platform neutral UTF-8 encoding and \n newlines. --- Remote Version +++ Local Version @@ -1,9 +1,9 @@ <?php -/* Inicio de sesión */ +/* Inicio de sesión */
Can you please try whether these steps will solve this issue for you? 1) start NetBeans from command line with: -J-Dfile.encoding=UTF-8 2) try to reproduce this issue Please, simply reopen this issue and tell us the result. @vriha: Láďo, please try to reproduce this issue on Windows. Thanks. Thanks.
I'll try. If I understand it correctly, both remote and local files were in UTF-8? I'll test this case with diacritic letters, please let me know if the encoding should be different
(In reply to comment #2) > If I understand it correctly, both remote and local files were in > UTF-8? I think so. > I'll test this case with diacritic letters, please let me know if the > encoding should be different Try to reproduce with Windows-1250 and then with UTF-8. Thanks.
With UTF8, no problem. with cp1250, it is reproducible. I have remote files in cp1250, they contain valid characters. Then I created project from remote server (still with cp1250). It contains valid chars. After invoking synchronization, I got following diff: - // Según la Real Academia Española + // SegĂşn la Real Academia Española It shows correct chars for remote files and incorrect for local
Product Version: NetBeans IDE Dev (Build 201205140400) Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21 System: Windows 7 version 6.1 running on x86; cp1250; en_US (nb)
Thanks.
Filed issue #212525; I will try to work around for NB 7.2. Thanks for reporting.
Fixed, please verify. Thanks. http://hg.netbeans.org/web-main/rev/ecc0a137c687
Seems fine, verified Product Version: NetBeans IDE Dev (Build 201206040001) Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21 System: Windows 7 version 6.1 running on x86; cp1250; en_US (nb)