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 73038 - I18N - Char encoding problem in template replace value and output windowI18N -
Summary: I18N - Char encoding problem in template replace value and output windowI18N -
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-27 07:36 UTC by tprochazka
Modified: 2007-09-26 09:14 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 tprochazka 2006-02-27 07:36:46 UTC
I have still problem with encoding in NB 5 final and tested it also in 5.5 
(netbeans-5_5-daily-bin-200602240300-24_Feb_2006_0300.zip) and also in latest 6.
0

When I set in Advanced Options -> Editing -> Java Sources -> String Tables for 
example "USER=Tomáš Procházka" and create new class (in template is __USER__), 
NB create new file with "@author Tomáš".

Problem is also with output console. When I write to code this:
System.out.println("Tomáš");
NB write square in place of áš

Problem exists only when I use -J-Dfile.encoding=UTF-8 for run NB. When I use 
Java
Sources -> Default Encoding all is OK, but in this mode is used UTF-8 only for 
Java Sources and I need it for all open files in NB.

And I don’t understand why “String Tables” is only in advanced mode of Options. 
I think, that Template manager would be better place for it.
Comment 1 tprochazka 2006-06-17 15:27:38 UTC
This is not still not fixed in daily build 200606120200 :-(
Will be fixed to final 5.5
I think, that this is important and small problem.
Comment 2 tprochazka 2006-06-17 17:18:33 UTC
With startup argument -J-Dfile.encoding=UTF-8 also output console use invalid 
encoding.
Comment 3 Ken Frank 2006-07-13 23:40:42 UTC
If you don't use the args for setting encoding -D....
is it ok or is there still problems ?

and when in the option you mention for string table,
when you set the encoding for java file, does it help ?

if there is gif of how things look, that could be helpful
also, also what platform are you using ?

ken.frank@sun.com
Comment 4 tprochazka 2006-07-14 07:13:06 UTC
> If you don't use the args for setting encoding -D....
> is it ok or is there still problems ?
> and when in the option you mention for string table,
> when you set the encoding for java file, does it help ?

When I set only encoding for Java file, not -D... encoding, all it's OK. 
Templates and output window show corect all chars.

But problem is, that I need all files in UTF-8, not only java source file, but 
also XML, TXT, etc.

Really do you need screenshot? I wrote how this looks in description of issue. 
Also I defined OS to Windows XP. But I can make screenshot, but it looks like:

/**
 *
 * @author  Tomáš Procházka &lt;<a href="mailto:tom.p@sf.cz">tom.p@sf.cz</
a>&gt;
 * @version $Revision: $ ($Date: $)
 */
public class NewClass {

Comment 5 Jan Becicka 2006-10-26 16:26:57 UTC
Javacore module was replaced by Retouche infrastructure. This bug is not valid
in trunk any more.
Comment 6 Ken Frank 2007-05-26 17:37:40 UTC
To bug filer, is this still a problem in nb6 ?

ken.frank@sun.com
Comment 7 tprochazka 2007-05-28 17:45:32 UTC
Yes, this bug is fixed.
Here is one similar bug:
http://www.netbeans.org/issues/show_bug.cgi?id=104770
Comment 8 Ken Frank 2007-05-28 18:37:56 UTC
verified
Comment 9 Quality Engineering 2007-09-20 12:13:49 UTC
Reorganization of java component