Solved

Getting  at the start of a text file created by VB6

Posted on 2009-05-14
1
399 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

726 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