Solved

Getting  at the start of a text file created by VB6

Posted on 2009-05-14
1
379 Views
Last Modified: 2012-05-07
Hi

I am creating a fixed width text file in VB6, and it works fine when i open the file and read it, snippet here:

ITEM_DOWNU

When i open the file in another VB6 app i've created, i get this:

ITEM_DOWNU

So because of those characters at the start, the fixed width is messed up

Why does it do this? is it some sort of encoding? how can i decode it properly?

Thanks

Scott
0
Comment
Question by:seancurt
1 Comment
 
LVL 11

Accepted Solution

by:
Antagony1960 earned 500 total points
ID: 24390184
Those characters are the Byte Order Mark (BOM) signature characters created by saving a file with UTF-8 encoding. My guess is that you are either saving the file in VB as a text stream with UTF-8 encoding or subsequently editing it with with a text editor which is set to save in that format. Save the file with ANSI encoding to avoid the problem.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now