On Tue, 8 Feb 2022 03:20:27 +0800, David Crayford wrote:
>We recently had a problem where a customer using a German codepage
>(IBM-273) used the ISPF editor to edit a z/OS UNIX file tagged
>ISO8859-1. The ISPF editor translated the file to EBCDIC (don't ask me
>why it does that. I much rather it stay in ASCII).
>
You mean ZTERMCID is 273? Does the ISO8859-1 file contain
characters with no representation in IBM-273?
What happens if the customer uses iconv to translate -f ISO8859-1 -t IBM273,
and tags the result IBM-273?
> ... We could tag the file UTF-8 but that opens a can
>of worms. UTF-8 is not well supported in z/OS UNIX. Setting
>
If the file contains characters in xrange( '80'x, 'FF'x ) which are
not part of valid UTF-8 octet sequences, it's not at all supported.
>_BPXK_AUTOCVT=ALL breaks most programs that use enhanced ASCII.
>
FSVO "mist".
>I'm of the opinion that the ISPF editor is not using the
>ZTERMCID to determine
>the code page to translate and is probably only supporting 1047. This
>isn't documented. Can anybody shed any light on this?
>
My experience, long ago. is that I created a file containing Cyrillic
characters in UTF-8 codes; tagged it UTF-8; set my x3270 to
IBM-880 and Viewed the file with ISPF 3.17. Cyrillic characters
displayed properly (after a couple APARs; one that ISPF tried
to validate before conversion.) It was just a PoC; I don't recall
that I ever modified or Saved.
Can you reproduce the customer's environment? Can you use any
non-USA terminal for a test? What was customer's desktop Locale
setting? (Mine was UTF-8.)
--
gil
Example:
Host: UTF-8 output: IBM273
0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
0 10 20 30 40 50 60 70 80 90 A0 B0 C0 D0 E0 F0
0 0 & - ø Ø ° µ ¢ ä ü Ö 0
1 1 é / É a j ß £ A J ÷ 1
2 2 â ê Â Ê b k s ¥ B K S 2
3 3 { ë [ Ë c l t · C L T 3
4 4 à è À È d m u © D M U 4
5 5 á í Á Í e n v @ E N V 5
6 6 ã î Ã Î f o w ¶ F O W 6
7 7 å ï Å Ï g p x ¼ G P X 7
8 8 ç ì Ç Ì h q y ½ H Q Y 8
9 9 ñ ~ Ñ ` i r z ¾ I R Z 9
10 A Ä Ü ö : « ª ¡ ¬ ¹ ² ³
11 B . $ , # » º ¿ | ô û Ô Û
12 C < * % § ð æ Ð ¯ ¦ } \ ]
13 D ( ) _ ' ý ¸ Ý ¨ ò ù Ò Ù
14 E + ; > = þ Æ Þ ´ ó ú Ó Ú
15 F ! ^ ? " ± ¤ ® × õ ÿ Õ
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN