473,395 Members | 1,474 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,395 software developers and data experts.

Extra character(a square box) at the end of data

112 100+
I am not sure if this is the correct forum for this question....so moderator please feel free to move this to the appropriate forum..thank you

Now coming to my issue...I have an application from which I pull data and then upload the data into the database.. This is very huge data and I do it almost 8 to 10times a day..the data I download from the application when uploaded into the database gives an extra character which is a square box at the end of data in few columns...currently what I do is, download the data as a .txt file and open in it notepad and then save it and then upload it into database...by opening and saving in it notepad..it somehow gets rid of the that extra square box.....

please find the attached file..you can open in it in word pad to view the square box..

can somebody please tell me how can I get rid of the square box or is there a way to automate the process of opening and saving the file in notepad...thank you
Attached Files
File Type: txt testfile.txt (34 Bytes, 809 views)
Apr 23 '10 #1
5 6130
Studlyami
464 Expert 256MB
The square box usually has to do with line returns in windows /r/n. What application are you using to open the file initially? Is this your code? Do you have access to the source files and can you modify them? When you parse your text file search for the /r from the string and remove it or try the same with /n. I have hit this all the time while working with files, just mess around with your carriage returns and that box will be gone.
Apr 23 '10 #2
user1980
112 100+
thank you for the reply.....I can not modify the source code as the application is a third party application. i will try to see if I can do any thing else to remove the /r or /n from the data..thank you
Apr 26 '10 #3
Studlyami
464 Expert 256MB
Perhaps you could expand more the entire process and applications involved in this process and perhaps we can help you find an acceptable solution. Perhaps contacting the creators of the program and see if 1 there is an update for the software or two see if there is something you can do to fix the problem. From a programmers standpoint it is easy to fix this problem.
Apr 27 '10 #4
Plater
7,872 Expert 4TB
I see nothing wrong with the line terminators in that file, they are correct for windows (\r\n and not just \n) and they are in the correct order.
There *IS* however a null byte in between the two tab characters.
0x09 0x00 0x09 (tab, null byte, tab) which is causing the box.
Probably used as a split point in the application that created it, or something strange in the way you retrieve the data
Apr 27 '10 #5
user1980
112 100+
thank you both for the responses...I will try to see how my data is being extracted.. i mean look into the code..if possible...or ask the provider to help me ..thanks for shedding light on what to look for...
Apr 27 '10 #6

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

Similar topics

3
by: J. C. O'Connell | last post by:
hi, I HAVE A TEXT BOX THAT I WANT THE USER TO ENTER A NUMBER IN. HOW DO I PREVENT RUN TIME ERROR IF THEY ENTER A STRING INSTEAD? I GUESS I NEED SOME TYPE OF DATA TYPE SENSING COMMAND BUT I DONT...
4
by: Norman Uhlenkott | last post by:
I would like to be able to put in special character inside an xml data string (#, <, >, &). when it trys to parses out the XML String it errors out strXML = "<?xml version='1.0'?>" & vbCRLF...
1
by: Robert Nurse | last post by:
Hi All, I've got a form which I'm trying to submit automatically when the user has entered 2 or more characters in a text imput box. Here's my set up: <SCRIPT language="JavaScript1.2">...
5
by: voidfill3d | last post by:
I have a problem with ASP.NET and entering data into a MS SQL database. I have the following code and what happens is the data gets into the database, but with one extra space at the end of ...
5
by: Kay | last post by:
Hi All, I'm trying to write a small sub/function to replace some (invalid) character in a combo box, or may be even text box. For example, I have several combo boxes that allows user to select...
4
by: libadmin | last post by:
I have a large database (for me) containing about 23,000 records and I need to add a single digit (the number 8) to all data currently in a specific field.. This field contains numbers already that...
4
by: subrahmanyaam | last post by:
Guys, I have a textbox1.text on my form. If any person enters the name as D'Souza, i want to eliminate that " ' " from the text box before i could save it. How do i do this... please comment I...
2
by: buckkitty | last post by:
Hello, Does anyone understand why Data2 would not equal Data? I print, and can see, that they LOOK the same, i.e. have the same number of rows and columns with the same values in each element. But...
2
by: agarwalsunitadhn | last post by:
I am developing a web application using PHP and Mysql. whenever i insert the data in database every string containg an extra character  at start. like if i have to insert 'ABC' then it will insert...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.