ANSI encoding CSV

Could you please anyone tell me, how to create CSV file with ANSI encoding format instead of UTF-8.


Do you mean in general, or the one that is returned from e.g. a Rails action with the response format set as CSV?

I mean the CSV file should be the ANSI encoding format.