473,671 Members | 2,363 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Junk Character

30 New Member
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 5149
JosAH
11,448 Recognized Expert MVP
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
Apr 14 '09 #2

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

Similar topics

2
3503
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
3516
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 Hotmail, using different domain sender names, different sending IPs, different SMTP servers, etc., different email text, and I still can't find out why Hotmail blocks so many good emails and throws them in the junk folder. The sending IP even has...
4
3047
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 it containes junk.I need to compare the received message over the socket with a particular charecter 'r' to terminate the entire process. Any help will be highly appreciated.The code snippet and my output is as follows: ...
4
6101
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. i predict it may be the newline or carriage return character. is there any function so that i can ward of these characters my database is under utf 8 and my db2level is
1
10043
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 declaration state "encoding = utf-8", but also get rid of the dirty characters. I was hoping that using System.Text.Encoding.UTF8 in the constructor of the XmlTextWriter class would prove nice and simple, but I'm finding out I'm having some issues with...
5
6870
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 some custom formatting needed by my client. I use a StreamReader to read in the file...regular expressions to parse and clean up the file...and a StreamWriter to write the new file. On some HTML files that I parse, I get this character "á"...
1
3453
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 characters at the end of the buffer after fread operation. I know that it has got to do with the delimiters. Any tips to avoid junk after reading?
6
2184
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
8471
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8388
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8817
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8593
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7423
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4396
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2804
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1799
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.