Bug 112698 - I18N - Show charset aliases for selected project encoding
I18N - Show charset aliases for selected project encoding
Status: NEW
Product: projects
Classification: Unclassified
Component: Generic Projects UI
6.x
All All
: P2 (vote)
: TBD
Assigned To: Milos Kleint
issues@projects
: I18N
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-08-13 20:14 UTC by Ken Frank
Modified: 2012-06-14 16:57 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments
available charsets and their aliases (8.27 KB, text/xml)
2007-08-15 08:16 UTC, Milan Kubec
Details
once more with correct MIME (8.27 KB, text/plain)
2007-08-15 08:26 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Frank 2007-08-13 20:14:53 UTC
assumption in filing this here is that the values in project encoding dropdown are from common code or api.
vs each project building own dropdown items.

I don't see MS932 on the dropdown, yet its the encoding that nb shows when user is in ja locale
either using en xp with regional settings to Japanese, or using actual localized windows for japanese.
thus it seems that it must be a commonly used notation for japanese encoding on windows, but users
would not be able to choose it if they want to change project encoding property.


for chinese, on windows it reports GBK as the encoding and that is in the dropdown.

if dropdown cannt have the ms932, then perhaps we can mention in docs about equivalent encoding to choose; shiftjis
might be one;
there are a lot of choices windows-.... in that dropdown.
Comment 1 Milan Kubec 2007-08-14 12:27:35 UTC
From some references I found on web I assume that MS932 has some aliases, like Windows-31J or x-sjis or even SJIS.

See:
http://www.ingrid.org/java/i18n/encoding/table.html
http://bugs.mysql.com/bug.php?id=7607

If any of those encodings are listed in the combo I think that there is no issue.
Comment 2 Ken Frank 2007-08-14 16:02:41 UTC
I think since we have many customers in Japan, and since nb itself reports MS932 to user,
I think we need to have MS932 on the dropdown; and 2nd url below seems to say that
sjis is not exactly the same as MS932.

I agree that not each and every alias can be or should be on dropdown, but if one looks at the dropdown
there seem to be many, many listings and some could be aliases for others.

Can you consider adding just this one to the dropdown ?

ken.frank@sun.com
Comment 3 Jesse Glick 2007-08-14 16:20:59 UTC
IMHO we should not special-case any encodings. We should display a combo containing the canonical display name for every
registered encoding, as reported by the JRE, and if necessary show known non-canonical aliases e.g. in a r/o text field
next to it.

According to

http://java.sun.com/javase/6/docs/technotes/guides/intl/encoding.doc.html

MS932 is also "windows-31j".
Comment 4 Ken Frank 2007-08-14 16:32:47 UTC
thats a good idea to show the non canonical in a r/o text field.

its a little confusing on that web page since it seems to say that both
columns are canonical names, although for different io packages.

ken.frank@sun.com
Comment 5 Milan Kubec 2007-08-14 17:06:27 UTC
I've printed all available charsets in JDK and 'windows-31j' is listed there, so if it's the same encoding as MS-932 I
think that this issue can be closed or changed to enhancement to show other names for the one encoding, but I don't know
how to get those names.
Comment 6 Jesse Glick 2007-08-14 17:11:31 UTC
Try Charset.aliases().
Comment 7 Milan Kubec 2007-08-15 08:16:10 UTC
Created attachment 46644 [details]
available charsets and their aliases
Comment 8 Milan Kubec 2007-08-15 08:25:24 UTC
Changing issue type to enhancement and summary to better describe actual problem. 

I've attached list of available charsets and their aliases on my windows machine. The list shows that there can be lot
of aliases for one charset, so adding r/o text field might not be the best solution, probably some (multi-)line tooltip?
Comment 9 Milan Kubec 2007-08-15 08:26:52 UTC
Created attachment 46646 [details]
once more with correct MIME
Comment 10 Ken Frank 2007-08-15 17:13:58 UTC
aliases list looks good; but am wondering about fitting in the dropdown in the various
project props windows

dropdown items are supposed to show all their contents (resize dynamically) but since some items have
many aliases, not sure all these would be seen, even at std 11 pt font but users can use larger fonts

could the dropdown have a horizontal sbar ?

or could there be a tooltip for each item that would show on top of dropdown and be able to be wider than it ?

ken.frank@sun.com
Comment 11 Ken Frank 2008-01-15 21:29:34 UTC
is this something that can be done easily for 6.1 ?
I don't want to suggest anything that might destabilize things
since its a short release cycle and planning already done for it.

ken.frank@sun.com
Comment 12 Milan Kubec 2008-01-16 07:43:36 UTC
I'm afraid that we won't make it for 6.1 release.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo