Product Information > JADE Error Messages and System Messages > 5000 through 5099 - File Handling Errors > 5022 - File cannot be opened as Unicode as it contains an odd number of bytes

5022   File cannot be opened as Unicode as it contains an odd number of bytes

Cause

This error occurs if your application code attempts to open a file containing an odd number of bytes as Unicode.

As all Unicode characters occupy two bytes, a file containing an odd number of bytes cannot be a Unicode file.

Action

Change your application code to open the file as File.Kind_Binary or File.Kind_ANSI.