Skip to main content

Hi, we works with Visual Cobol runing in UNIX servers and our BBDD use UTF-8 encodig.

Now we are starting to transfer informatión with other companies using API´s.

The problem we have in this moment is that we recive the information ANSI encode and we need convert it to UTF-8 encode.

is there some way to do this in cobol?

Hi, we works with Visual Cobol runing in UNIX servers and our BBDD use UTF-8 encodig.

Now we are starting to transfer informatión with other companies using API´s.

The problem we have in this moment is that we recive the information ANSI encode and we need convert it to UTF-8 encode.

is there some way to do this in cobol?

I assume you are probably running in traditional Native code (compiled/generated machine code, but I will just ask if you are by chance using COBOL/JVM instead? (COBOL compiled to Java Byte code and running under JVM)


I assume you are probably running in traditional Native code (compiled/generated machine code, but I will just ask if you are by chance using COBOL/JVM instead? (COBOL compiled to Java Byte code and running under JVM)

we codify and run cobol in aix machines , we use visual cobol for unix


we codify and run cobol in aix machines , we use visual cobol for unix

Visual COBOL for Eclipse on Linux/UNIX


Visual COBOL for Eclipse on Linux/UNIX

 I have found this function in the documentation 

CBL_STRING_CONVERT

I think that it can be the way to do the conversion, 

But if there is any other way to do it we would love to know about it.

 I have found this function in the documentation 

CBL_STRING_CONVERT

I think that it can be the way to do the conversion, 

But if there is any other way to do it we would love to know about it.

Ahh yes. CBL_STRING_CONVERT should do it


Ahh yes. CBL_STRING_CONVERT should do it

thank you very much