(What is it about this message that quoted text is not distinguished
with ">"?)

On Mon, 3 Nov 2014 12:16:49 -0500, Denis Gäbler wrote:
 
you can do that very easily, with pragma convert in z/OS and z/VM:
 
http://www-01.ibm.com/support/knowledgecenter/SSB27U_6.2.0/com.ibm.zos.r12.cbclx01/zos_pragma_convert.htm
 
The compile will convert it at compile time but it remains readable in the 
source.
That would be useful these days in COBOL or PL/I as well.
 
However a sample will look like this (1208 is a Unicode codepage):
#pragma convert(1208)
const char[]=ISO8859-1("This is an ISO8850-1 encoded string");
#pragma convert(pop)
 
I have not tried it with #pragma convert("ISO8859-1"), but according to the C 
compiler docs this should work.

Does it work with the very popular UTF-8?

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to