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 112814 - I18N - SOA sample projecst works with encoding incorrectly
Summary: I18N - SOA sample projecst works with encoding incorrectly
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: Composite Application (show other bugs)
Version: 6.x
Hardware: PC All
: P2 blocker (vote)
Assignee: Jun Qian
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-08-14 23:13 UTC by Ken Frank
Modified: 2007-11-09 19:10 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Frank 2007-08-14 23:13:38 UTC
nb6 has new project encoding property and now enterprise modules have or are in progress of implementing
for that.

but samples are from previous release, and it was advised to have them regenerated as nb6 projects;
issues have been filed on other sample components as well.

Tomas Zezula can tell you more about it.

ALSO, creating enterprise sample or blueprint, it actually causes the global project encoding value
to be set to the utf-8 encoding that the sample project is created with -- this is a problem
as its not supposed to change this value unless user does - and it causes all new projects after
that to use utf-8 -- thus please fix this now even if wont regenerate the samples until later.

(other samples that have not been regeneaated use utf-8 or system locale now instead of global
value of enc, but they dont cause the global value to be changed)
Comment 1 Vladimir Yaroslavskiy 2007-08-15 09:36:11 UTC
Regenerated SOA samples.
Comment 2 Ken Frank 2007-09-18 18:15:11 UTC
reopening

using 0912 build; running in solaris ja locale BUT the project encoding is gb18030, so expectation is that any new
created projects would use that encoding.

 the encoding properties of the ejb and web app created when create enterprise sample,
are that of x-eucJP-OPEN, which is the encoding of the locale the user is in, not the current global project encoding value.

creating a regular ejb, the project encoding is that of gb18030, the current project encoding value.

ken.frank@sun.com
Comment 3 Ken Frank 2007-09-18 18:35:35 UTC
last comment is about enterprise samples category like annotation override.

but also the soa samples still have same problem as in original description.

QUESTION - should problem with the enterprise category be filed in some other iz category,
and this issue is just for soa samples ?

even if this is just for soa samples, the reopening is valid since original problem still happens.

ken.frank@sun.com
Comment 4 Vladimir Yaroslavskiy 2007-09-20 14:02:05 UTC
Removed source.encoding=UTF-8 from project.properties.
Comment 5 Ken Frank 2007-09-29 22:46:56 UTC
still not fixed in 0927 - uses encoding of locale vs feq project encoding value
(and also it changes global feq value for new projects to be its encoding, which also
is not what user wants.

please verify using actual nb before resolving this -  create some initial java project for example, that is utf-8
project encoding, and look at is enc property;  then create the soa sample, and you'll see, at least on solaris,
its proj encoding is euc-jp instead of utf-8.

ken.frank@sun.com
Comment 6 Vladimir Yaroslavskiy 2007-10-01 11:27:41 UTC
Default value UTF-8 was removed from project properties in SOA samples.
The samples is BPEL project with encoding functionality, so they have
the same behavior. The encoding functionality (implementation) comes
from comp app project and bug is in comp app. Reassign...
Comment 7 Ken Frank 2007-10-01 16:12:43 UTC
when i create bpel module project, the project encoding does seem to follow that of
the current global encoding - ie if i change some other project encoding to Big5, then
create bpel project, its enc is big 5, and if i change that proj encoding to something
else, the next new project of any type besides the samples, is created with that new encoding property.

but the behavior of the samples was not like this.

ken.frank@sun.com
Comment 8 Ken Frank 2007-10-03 18:59:13 UTC
changing summary to indicate this is about soa sample projects.

ken.frank@sun.con
Comment 9 Sergey Lunegov 2007-10-09 13:13:28 UTC
Jun, do you agree with Vladimir's evaluation. If not please reassign to more appropriate category.
Comment 10 Ken Frank 2007-10-09 20:12:40 UTC
please fix this very soon;as it makes the feq and project encoding not valid
and user wont know about it.

ken.frank@sun.com
Comment 11 Jun Qian 2007-10-10 02:42:16 UTC
IDE: [10/9/07 6:39 PM] Committing "JbiProjectProperties.java" started
Checking in JbiProjectProperties.java;
/cvs/enterprise/compapp/projectjbi/src/org/netbeans/modules/compapp/projects/jbi/ui/customizer/JbiProjectProperties.java,v
 <--  JbiProjectProperties.java
new revision: 1.14; previous revision: 1.13
done
IDE: [10/9/07 6:39 PM] Committing "JbiProjectProperties.java" finished
Comment 12 kaa 2007-10-18 19:42:06 UTC
verified: build 1016, XP.ja_JP: UTF-8
Created Java app, then changed its encoding to win-31j
Enterprise samples are using this value.
Comment 13 Ken Frank 2007-10-24 20:26:12 UTC
Andrey, did you also verify that when changing the encoding of the sample project, 
that new soa or j2se projects, for example, use the encoding that was changed to in the soa sample ?

ken.frank@sun.com
Comment 14 kaa 2007-11-09 19:10:08 UTC
rechecked again with 1109, ctreated Ent Samples then changed encoding:
SOA and Enterprise projects are using it.