Focused on delivering choice, investment protection and flexibility to organizations with valuable COBOL assets
Veryant Knowledge Base
Home > All Categories
> isCOBOL General > How can I read data correctly from a line-sequential file that has a different encoding from the one used by isCOBOL?
How can I read data correctly from a line-sequential file that has a different encoding from the one used by isCOBOL?
To solve this problem you can normally read the line-sequential file, then before using the contents of the record you can call a specific java function for the translation.
Attached below is a Cobol sample program that reads a file created with UTF8 encoding. For each record call Java class provides the translation into CP1252 encoding.
Authored
by: Veryant Support
This question has been viewed 4078 times so far.
Click
Here to View all the questions in isCOBOL General
category.