Hi,
please I need to convert file from UTF8 to Windows 1251 code page?
Can be used routine CBL_STRING_CONVERT here? And if it's so, how is proper call?
I still got status-code value '3' - unsupported conversion
#COBOL
Hi,
please I need to convert file from UTF8 to Windows 1251 code page?
Can be used routine CBL_STRING_CONVERT here? And if it's so, how is proper call?
I still got status-code value '3' - unsupported conversion
Hi,
please I need to convert file from UTF8 to Windows 1251 code page?
Can be used routine CBL_STRING_CONVERT here? And if it's so, how is proper call?
I still got status-code value '3' - unsupported conversion
Hi,
CBL_STRING_CONVERT is used to convert between Unicode characters and ASCII/EBCDIC and isn't an all purpose code page conversion function.
There are methods to do this in .NET using Visual COBOL but if you are using a Net Express native application I am not sure if there is an automated way of doing this conversion. You might have to code this yourself by looking up the equivalent characters in a table.
Is this something you need to do one time for a migration or is this an on-going process that you need to support going forward?
How are you getting the UTF-8 characters into the program and are they all single byte UTF-8 characters?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.