Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Cancel
2
  • If you know this file is in CP932, likely Shift-JIS, set your encoding to that. Forcing to ASCII seems counter-productive. You'll want to convert any input to UTF-8 as soon as possible to avoid encoding issues internally.
    – tadman
    Commented Apr 11, 2023 at 14:44
  • Thanks @tadman. The ASCII 8-BIT is what rails is giving me. I will try again to force to CP932 as soon as the data stream is read and see what happens and update the question.
    – phil
    Commented Apr 12, 2023 at 0:14