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 155315 - I18N - Refactor copy between project ignores encoding
Summary: I18N - Refactor copy between project ignores encoding
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2008-12-12 10:00 UTC by gyszalai
Modified: 2010-09-23 08:44 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gyszalai 2008-12-12 10:00:40 UTC
I opened two projects. Project A used iso-8859-2, project B used utf-8 as source encoding. I tried to copy a Java class
from project A to project B. The special (Hungarian) characters in the resulting file were unreadable.
Comment 1 Ken Frank 2008-12-15 03:05:18 UTC
I think the way the project encoding is setup, is that encoding conversion is not done and thus
this would not happen ok as in this case shows.

But it seems that it should happen since between 2 projects, with assumption that all files in each project
are in the encoding of the project (otherwise user should change it to be so)

I'm going to put this as p2 for now since it does seem like a basic functionality of feq/encoding handling
and is related to the criteria about use of characters of other locales.


to developers - are there other places where copying of file info/date from one project to another happens as part of d
doing things in nb ?

ken.frank@sun.com
Comment 2 Jan Pokorsky 2009-01-06 17:02:20 UTC
AFAIK automatic encoding change has not been implemented for neither plain copy/move nor refactoring copy/move yet.
Changing to FEATURE.

IMO, the best place to implement it would be particular data types (java, c, ...) that have necessary knowledge about
the content. As some data types like xml may be independent on project encoding. It would cover all file copy/move
operations.

gyszalai: In order to fix encoding manually use the Encoding Support plugin that allows you to open and save a file in
given encoding.