Skip to main content
May 20, 2010
Question

Export text different between computers

  • May 20, 2010
  • 1 reply
  • 399 views

Working in CS3, Windows, in VB. I have a script that builds a simple index into a frame. The index is really just a list of pages numbers. I select the text frame and use Selection(1).Export idExportFormat.idTextType, PgNoFile$ where "PgNoFile$" is the filename of the exported file.

What is happending though is that on one of three computers I'm getting a different file structure from the idTextType export type. From two machines the file is very clean, straight ASCII (or more likely ANSI) with just the letters and numbers I need. The other file has

This topic has been closed for replies.

1 reply

May 20, 2010

OY! Sorry, hit some keystroke that posted it too soon!

The other file has null characters (00's) between all the "regular" characters.

Any idea why I'd be getting two different things?

Many thanks

John Hawkinson
Inspiring
May 23, 2010

00's between characters probably means that the file is encoded in UTF-16, rather than UTF-8 or ASCII. Really the best answer is to read the text file with a program that can read the file properly regardless of encoding.

As for why that encoding is used? Not sure. Either InDesign is decided to do so on the basis of some characters inside your document, or there is some sort of global system setting (registry?) that is changing this behavior...