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.

Bug 212501 - Problem con Remote Synchronization and UTF-8
Summary: Problem con Remote Synchronization and UTF-8
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: FTP Support (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on: 212525
Blocks:
  Show dependency tree
 
Reported: 2012-05-14 21:49 UTC by pasky
Modified: 2012-06-04 06:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Incorrect Remote Diff with UTF-8 files (12.51 KB, image/png)
2012-05-14 21:49 UTC, pasky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pasky 2012-05-14 21:49:36 UTC
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 */
Comment 1 Tomas Mysik 2012-05-15 09:01:51 UTC
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.
Comment 2 Vladimir Riha 2012-05-15 09:12:44 UTC
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
Comment 3 Tomas Mysik 2012-05-15 09:46:01 UTC
(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.
Comment 4 Vladimir Riha 2012-05-15 10:15:28 UTC
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
Comment 5 Vladimir Riha 2012-05-15 10:15:43 UTC
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)
Comment 6 Tomas Mysik 2012-05-15 11:49:11 UTC
Thanks.
Comment 7 Tomas Mysik 2012-05-15 12:05:18 UTC
Filed issue #212525; I will try to work around for NB 7.2.

Thanks for reporting.
Comment 8 Tomas Mysik 2012-05-16 12:50:48 UTC
Fixed, please verify. Thanks.

http://hg.netbeans.org/web-main/rev/ecc0a137c687
Comment 9 Vladimir Riha 2012-06-04 06:36:51 UTC
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)