Path: ...!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Wolfgang Agnes Newsgroups: comp.lang.fortran Subject: OT: unicode (Was: Re: Upcoming gfortran 15 will contain unsigned numbers) Date: Mon, 25 Nov 2024 08:35:48 -0300 Organization: A noiseless patient Spider Lines: 18 Message-ID: <87y117y297.fsf_-_@example.com> References: <87bjy6cfek.fsf@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 25 Nov 2024 12:35:52 +0100 (CET) Injection-Info: dont-email.me; posting-host="2ecfb6169f8f4c0abcf3bd1102ea7f07"; logging-data="2899185"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19h3n+lrnxZ1tORf5ONAX0vTHppr4bk6WM=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt) Cancel-Lock: sha1:Cmy5zHUxFnCkG7sC8yjLWsvuBcc= sha1:8aKTTUpGbugwNp3w8ooEriy01C8= Bytes: 2043 Lawrence D'Oliveiro writes: > On Sat, 23 Nov 2024 09:18:11 -0300, Wolfgang Agnes wrote: > >> How about UCS-2? > > “UCS-2” was the name of the encoding back when it was assumed that Unicode > was always going to be just 16 bits. After the coding was extended, those > “surrogate” ranges were introduced, to allow representation of the extra > characters within a 16-bit encoding, and so “UCS-2” was renamed to > “UTF-16”. > > In short, “UTF-16” is basically “UCS-2 with surrogates”. Nice to know! Thanks. So, UCS means ``Universal Character Set''. I thought it was a whole different character set. It's a bit difficult to understand ``surrogates''. So many definitions come up such as ``Basic Multilingual Plane''. Can you explain what surrogates are?