On Wed, 12 Apr 2017 13:50:47 -0500, John McKown wrote:
>
>> * CONVERT UNICODE TO UTF-8
>> * CONVERT UTF-8 TO UNICODE
>>
>> What's "UNICODE"?  I suppose it's in a glossary somewhere.
>
>​With respect to the PoPS, "Convert UTF-8 to Unicode" is exactly the same
>instruction as "Convert UTF-8 to UTF-16" and "Convert Unicode to UTF-8" is
>the same instruction as "Convert UTF-16 to UTF-8".​ The results are
>documented in the instruction on the transformation results, but (of
>course) does not say exactly how it is implemented.
>
I see that:
CONVERT UTF-8 TO UTF-16 
CONVERT UTF-8 TO UNICODE
    ...
'B2A7'
    ...
The one-, two-, three-, or four-byte UTF-8 characters of the second 
operand are converted to two-byte Unicode characters and placed
at the first operand location.

But Wikipedia, which is always right, tells me that UTF-16 is not a
two-byte representation but a variable-length representation.

RCF in order?

-- gil

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

Reply via email to