From: Bart Steens on
After upgrading to Director 11, we are experiencing problems with the FileIO
xtra.

In our project, we are using this xtra to read data from a file. The file in
question contains binary characters (null characters as well).

With the previous version of Director, we were able to read this file's
contents by using the readChar method. However, with the new version, for all
chars with an ASCII code > 127 readChar does not return the correct ASCII code,
but returns a negative number for each byte instead.

When using readLine, characters with an ASCII code > 127 are interpreted
correctly, but only if the source file is converted to UTF-8. However we cannot
use this function on a binary file.

Has anyone experienced similar problems and found a solution?

From: Andrew Morton on
Bart Steens wrote:
> After upgrading to Director 11, we are experiencing problems with the
> FileIO xtra.

Unless there's some switch in the D11 FileIO xtra to tell it you're dealing
with binary data, you could try the BuddyFile xtra from www.mods.com.au.

Andrew


From: Chunick on
maybe this free Xtra developed specifically for D11 will help:
http://www.schmittmachine.com/BytesXtra.html
From: Bart Steens on
Thank you all for responding. I have been able to process the binary file using
BytesXtra.

However, if we use this Xtra to read ANSI text files that have special
characters (for example ?, ? etcetera) the correct ASCII values are read but
Director is unable to interpret these characters. Thus, they are incorrectly
displayed when displayed on screen.

Does Director have a function that allows translating ANSI text into Unicode
(which does display special characters correctly)?