Originally posted by Liz Reynolds:
I'm using a subclassed version of JEditorPane (HTMLPane) and a subclass of HTMLEditorKit (HTMLPaneEditorKit) to get a form view that is similarly subclassed to process locally for my pane. I tried various versions of setting the content type for HTMLPane (JEditorPane), such as setContentType("text/html; charset=EUC-JP") or ("text/html charset=\"EUC-JP\""), setContentType("text/html; charset=UTF-8), etc. but it doesn't appear to be working.
ok, but it's still unclear exactly how you are getting your EUC-JP or UTF-8 (which is it?) text into your JEditorPane/HTMLPane. Probably best to just show us your code.
In the absense of code, it seems to me it should work if you try something like this:
InputStreamReader reader = new InputStreamReader(yourInputStream, "EUC-JP");
yourEditorPane.read(reader, "description");
Tell me, is it only the text in the field that gets munged? If you can see kanji and kana text in non-form HTML, just not in the form fields, then I guess something trickier is going on.