ANSI is a standards institute. In fact, there is no such encoding. ANSI is often understood as the one-byte encoding currently selected on the user's system. But it is not worth hoping that the user's machine will have exactly the same regional settings.