Junk Character

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ksrashmi
    New Member
    • May 2007
    • 30

    Junk Character

    Hi

    We have text box field users are copying the data from the word document and pasting into textbox . after saving which is generating some junk characters .
    every time when i click on update button . junk characters are increasing .

    i noticed for " (double quotes it was replacing with  i tried String replace method to replace these characters . but i am not sure what other characters are getting replaced . Is there any way to solve this problem ?
    Please help me to solve this issue . thanks
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    All the JTextComponents (and its derived classes) can read or write their contents. Create an appropriate OutputStreamWri ter or InputStreamRead er that uses the correct en/decoding (say UTF-8) and use that for the reading or writing of the contents.

    kind regards,

    Jos

    Comment

    Working...