473,387 Members | 1,425 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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
Apr 14 '09 #1
1 5132
JosAH
11,448 Expert 8TB
All the JTextComponents (and its derived classes) can read or write their contents. Create an appropriate OutputStreamWriter or InputStreamReader that uses the correct en/decoding (say UTF-8) and use that for the reading or writing of the contents.

kind regards,

Jos
Apr 14 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Reny | last post by:
Hi, I made a crystal report using vs.net 2003 and it is showing junk character instead of arabic and my db is oracle 8i.Can any one tell me why ?
14
by: HB | last post by:
As many of us know, when we send legitimate emails to real customers from our apps, those emails often end up in the Hotmail (and MSN -- and AOL, too) junk folder. I've done a lot of testing with...
4
by: Index | last post by:
Hi, I am trying to compare a char* with an unsigned char*.I have type cast the later to char*.Now the problem is, the unsigned char* is populated with recv() function over the socket and sometimes...
4
by: situ | last post by:
Hello all, i have a column in a table which stores tag lines which are usually less than 500 charecter. when we display the data through the browser some character display as "boxes" or junks....
1
by: nalinibala | last post by:
I'm having issues using XmlTextWriter, saving it out to a file with UTF8 encoding, and seeing "human unreadable" characters show up *right before* the XML declaration. I need to have the XML...
5
by: Rob | last post by:
Hi, I have a VB.Net application that parses an HTML file. This file was an MS Word document that was saved as web page. My application removes all unnecessary code generated by MS Word and does...
1
by: chebiyam | last post by:
Hi, I am using fread to read from a simple ASCII text file. fread happens fine as I give the file size that I am reading correctly. The buffer that I gave is a character string. I see some junk...
6
by: Smish | last post by:
hi,hope atleast this question would b answered... Am using C# 2008 Am reading a html file using : streamreader sr = new streamreader(path,Encoding.DEfault); string input = sr.Read();
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.