In the second paragraph of ":help unicode", I read:

<<
Unicode can be encoded in several ways.  The two
most popular ones are UCS-2, which uses 16-bit
words and UTF-8, which uses one or more bytes
for each character.
>>

I think this should be updated. The two most
popular ones are UTF-16 and UTF-8.  From wikipedia,
"UCS-2 is an obsolete character encoding which is
a predecessor to UTF-16".

Furthermore, strictly speaking, UCS-2 is not a
Unicode encoding, since it can only represent
characters in the Unicode page 0.

UTF-16 and UCS-2 are too often confused with
each other. Let's not add to the confusion in Vim
help files.

How about changing it to something like this...

cvs diff: CVS password file /home/pel/.cvspass does not exist -
creating a new file
Index: mbyte.txt
===================================================================
RCS file: /cvsroot/vim/vim7/runtime/doc/mbyte.txt,v
retrieving revision 1.27
diff -c -r1.27 mbyte.txt
*** mbyte.txt   9 Aug 2008 17:46:58 -0000       1.27
--- mbyte.txt   14 Nov 2008 22:42:31 -0000
***************
*** 1246,1254 ****
  Unicode (with a few rarely used languages excluded).  And it's mostly possible
  to mix these languages in one file, which is impossible with other encodings.

! Unicode can be encoded in several ways.  The two most popular ones are UCS-2,
! which uses 16-bit words and UTF-8, which uses one or more bytes for each
! character.  Vim can support all of these encodings, but always uses UTF-8
  internally.

--- 1246,1256 ----
  Unicode (with a few rarely used languages excluded).  And it's mostly possible
  to mix these languages in one file, which is impossible with other encodings.

! Unicode can be encoded in several ways.  The two most popular ones are UTF-8
! and UTF-16.  UTF-8 uses one or more bytes for each character.  UTF-16 uses
! a single 16-bits word for most characters, or a pair of 16-bits words
! (called surrogate pair) for rare characters beyond the Basic Multilingual
! Plane.  Vim can support all of these encodings, but always uses UTF-8
  internally.


Regards
-- Dominique

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to