Skip to Content

How can I read a data written with a different encoding?

Estimated Reading Time: < 1 Minute

Having the need to read a data, for example from a sequential file, written in UTF-8 on on machine where the default encoding is the Cp1252 you can use a java function that allow to 'translate' the data from the source encoding to the destination encoding

In attachment a cobol program that reads a sequential file written in UTF-8 and thru the paragraph RECORD-CONVERSION is able to translate in the Cp1252

How can I read a data written with a different encoding?
  • Attached Files
  • encoding_copy1.zip (1.29 KB) 10