Of course its simpler if you know you're always dealing with latin-1.
--
bc


On Tue, Nov 20, 2012 at 12:56 PM, Glenn Knickerbocker <[email protected]>wrote:

> On 11/20/2012 11:04 AM, Bob Cronin wrote:
> > I used to have my own Rexx code to
> > translate utf8 to utf16, but dropped that in favor of the "undocumented"
> > utf stage the Piper was so kind to provide. So basically you just need to
> > convert utf8 to utf16 and then use the Unicode to EBCDIC table
> appropriate
> > to your situation.
>
> I think by "ASCII UTF-8" he really means UTF-8 encoded 8-bit Latin-1
> (ISO 8859-1), so VCHAR should fill in the missing step by skipping over
> the extra 8 0-bits.  From EBCDIC to UTF-8:
>
>   ... | utf from utf-8 to utf-16 | vchar 16 8 | xlate a2e | ...
>
> From UTF-8 to EBCDIC:
>
>   ... | xlate e2a | vchar 8 16 | utf from utf-16 to utf-8 | ...
>
> ¬R
>

Reply via email to