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 257763 - Bad encoding in popup javadoc
Summary: Bad encoding in popup javadoc
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.1
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Svata Dedic
Depends on:
Reported: 2016-01-29 15:25 UTC by 6PATyCb
Modified: 2016-05-04 10:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:

bug example (49.14 KB, image/jpeg)
2016-01-29 15:25 UTC, 6PATyCb

Note You need to log in before you can comment on or make changes to this bug.
Description 6PATyCb 2016-01-29 15:25:36 UTC
Created attachment 158294 [details]
bug example

Hello, sorry for my bad english.
I am a russian java developer. When i make my maven libs and them inject it to my projects the javadoc of lib funcs have wrong cyrrilic encoding. I seen at IDE's editor popups with ctrl+alt+space hotkey (take a look attachment). 

I was try understand why is happens, i was decompile IDE's jar:
and find text "encoding" in it.
After looking at func: handleSimpleTag
i was understand: it was parse META tag containings attribute CONTENT and in it value trying to find "charset" but when i look at my compiled mylib-javadoc (maven-javadoc-plugin), it's html contain this:

<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">

then i was replace this tag to:

<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">

and upload it back to mylib-javadoc.jar

after that, IDE shows javadoc in correct encoding.

Please, make a patch for this javadoc module to allow parse individual attribute "charset" when it trying detect encoding
Comment 1 6PATyCb 2016-05-04 10:21:48 UTC
I was research this issue again and i tryed make a patch for javadoc module of netbeans. I think this issue have place not at javadoc module. Source of wrong encoding is conditions when i have both javadocs and sources of my lib downloaded with maven. If downloaded javadoc only IDE show me popup text from javadoc, but after i was download sources IDE trying show me popup text from sources. At this situation IDE don't know for sure encoding of sources and my issue arises. Also important condition of this issue is different default encoding IDE and encoding of sources. To resolve this issue IDE must know encoding of sources but i don't know place to get it.