Skip to main content

WHLLAPI Unicode

  • April 19, 2017
  • 1 reply
  • 0 views

I am connecting to Micro Focus Rumba ObjectX Pro Control Container (Web based TN3270 emulator) version 6 using WHLLAPI.

 

I have requirement to read and write to screen some non Latin characters (UTF-8).

 

From my .Net client, when I set encoding as Unicode, I get a space after each character that is provided as input to function copystringtopresentationspace. Does anyone know of a solution.


#Rumba

1 reply

I am connecting to Micro Focus Rumba ObjectX Pro Control Container (Web based TN3270 emulator) version 6 using WHLLAPI.

 

I have requirement to read and write to screen some non Latin characters (UTF-8).

 

From my .Net client, when I set encoding as Unicode, I get a space after each character that is provided as input to function copystringtopresentationspace. Does anyone know of a solution.


#Rumba
The copystringtopresentationspace is not supporting UTF-8 it is only supports ASCII - as in the docs
"The Copy String to Presentation Space function copies an ASCII data string directly into the host presentation space at the location specified by the PS position calling parameter."
Please use a proper conversion from your UTF-8 to byes array using the emulator specific code page for example UTF-8 to Greek
Thanks
Adi