4 Replies Latest reply on Apr 29, 2008 3:09 AM by Bart_Steens

    Director 11: issues with Unicode and binary/Ansi text

      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?