|
Prev: Can't get Selection of text member text to 'take'
Next: Brand Watches Cartier Santos Demoiselle Steel Ladies Watch W25064Z5 Discount, Replica, Fake
From: Bart Steens on 18 Apr 2008 09:59 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 18 Apr 2008 10:43 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 18 Apr 2008 13:47 maybe this free Xtra developed specifically for D11 will help: http://www.schmittmachine.com/BytesXtra.html
From: Bart Steens on 22 Apr 2008 04:42
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)? |