I am using the rtf editor to show contents to user. Contents are composed using database values which sometimes consist of Greek letters.
Initially they were shown as question marks ? ? ? ?
instead of Γ γ Ψ ψ
.
After research online changed CONTENT.getBytes();
to CONTENT.getBytes("UTF8");
when writing those contents to response object as response.getOutPutStream
using bytearraystream
from CONTENTS and Display using JavaScript
document.myobj.HttpOpenFileFromStream(contents passed through earlier in response)
Any normal text contents are displaying fine in editor but if there are Greek letters such as Γ γ Ψ ψ
then in editor they displayed as Γ γ Ψ ψ
.
To double check, I printed contents before put in html page and it shows desirable characters Γ γ Ψ ψ
but when those gets displayed in UI in RTF editor they become Γ γ Ψ ψ
. Can some one help me with this?
Thanks in advance.