It would probably help if you gave us more explicit details of what you are trying to do...
You are apparently confusing two things together here... ascii and ansi are character sets used with text files. If you write an integer like 12345 you will be able to open the file and see 12345. Binary files do not translate values to human readable form... if you write 12345 you will see a bunch of squiggles when you open the file because what you will be looking at is the raw binary data for that value. Thus binary files are not humanly readable.
The ansi and ascii characters from 0 to 127 are standardized. You can view a chart of their values
HERE Characters from 128 to 255 are defined regionally and will be different in North America than they are in Greece and different again from France or Germany.
If you are looking for a language agnostic character set look into using
Unicode which is the programming equivalent of stepping on a landmine since it exposes issues such as
Endianness and
Line Ending. Windows supports the Unicode standard of UTF16LE and uses cr/lf pairs to end lines. This will allow for almost any character in any language to be represented, but again the character sets vary from region to region and the endian format and line endings also vary from OS to OS creating a veritable rats nest of problems for programmers.
This is now a hot topic in that the "English Only" days of computing are slowly drawing to a close and
Internationalization is becoming the new best thing with programmers being called upon to make applications available in multiple languages through use of resource-only DLLS.
Binary files are a whole different ball of wax. They are called "binary" because the actual raw data from the computer's memory is written directly to disk and read back directly into memory without any encoding or translation. The disk file itself is usually a series of records, most often created by reading and writing structs directly into and out of memory. This is a highly efficient form of disk storage that is widely used for database, inventory and financial applications. But it is not intended to be humanly readable.
Hope that helps...