OK then:

#pragma convert("UTF-8")

Kirk Wolf
Dovetailed Technologies
http://dovetail.com


On Tue, Dec 22, 2020 at 11:34 AM 'Paul Gilmartin' via ISPF discussion list <
[email protected]> wrote:

> (cross-posting)
> On 2020-12-22, at 09:31:06, Kirk Wolf wrote:
> >
> > This is the way that we do it -
> >
> > #pragma convert("ISO8859-1")
> > const char*  ASCII_LITERAL = "a literal string in ISO8859-1";
> > #pragma convert(pop)
> >
> I'm more interested in the wildly popular UTF-8.  On my
> desktop I can:
>     791 $ locale
>     LC_CTYPE="en_US.UTF-8"
>         ...
>     792 $ echo aπb | sed 's/../x/'
>     xb
>
> The regex substitution converts the first two characters,
> the 'a' and the 'π' to the 'x'.
>
> Suppose I'm Editing a similar file with ISPF Edit, CTYPE UTF-8,
> which ISPF supports, and a CP875 terminal (which ISPF supports
> but I don't have).  How does the analogous Edit command do
> its magic:
>     Change r'..' 'x'
>
> -- gil
>
> --
> You received this message because you are subscribed to the Google Groups
> "ISPF discussion list" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/a/nd.edu/d/msgid/ispf-l-list/5A734CA8-A226-4486-A988-3A0DC4D3DD06%40AIM.com
> .
>

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

Reply via email to