Skip to main content

convert ansi encoded text to utf-8

  • November 15, 2023
  • 6 replies
  • 3 views

M Carmen De Paz
Forum|alt.badge.img+2

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?

6 replies

Michael Bleistein

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)


M Carmen De Paz
Forum|alt.badge.img+2
  • Author
  • Participating Frequently
  • November 16, 2023

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


M Carmen De Paz
Forum|alt.badge.img+2
  • Author
  • Participating Frequently
  • November 16, 2023

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

Visual COBOL for Eclipse on Linux/UNIX


M Carmen De Paz
Forum|alt.badge.img+2
  • Author
  • Participating Frequently
  • November 16, 2023

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.

Michael Bleistein

 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


M Carmen De Paz
Forum|alt.badge.img+2
  • Author
  • Participating Frequently
  • November 16, 2023

Ahh yes. CBL_STRING_CONVERT should do it

thank you very much