/[emacs]/emacs/lispref/nonascii.texi
ViewVC logotype

Diff of /emacs/lispref/nonascii.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.47 by handa, Fri Apr 1 00:29:51 2005 UTC revision 1.48 by rms, Fri Apr 1 22:08:39 2005 UTC
# Line 628  characters; for example, there are three Line 628  characters; for example, there are three
628  conversion, but some of them leave the choice unspecified---to be chosen  conversion, but some of them leave the choice unspecified---to be chosen
629  heuristically for each file, based on the data.  heuristically for each file, based on the data.
630    
631  In general, a coding system doesn't guarantee a roundtrip identity,  In general, a coding system doesn't guarantee roundtrip identity:
632  i.e. decoding followed by encoding in the same coding system can  decoding text then encoding the result in the same coding system can
633  result in the different byte sequence.  But there are several coding  produce a different byte sequence from the one you originally decoded.
634  systems that go guarantee that the result will be the same as what you  However, the following coding systems do guarantee that the result
635  originally decoded.  They are:  will be the same as what you originally decoded:
636    
637  @quotation  @quotation
638  chinese-big5 chinese-iso-8bit cyrillic-iso-8bit emacs-mule  chinese-big5 chinese-iso-8bit cyrillic-iso-8bit emacs-mule
# Line 641  iso-latin-4 iso-latin-5 iso-latin-8 iso- Line 641  iso-latin-4 iso-latin-5 iso-latin-8 iso-
641  japanese-iso-8bit japanese-shift-jis korean-iso-8bit raw-text  japanese-iso-8bit japanese-shift-jis korean-iso-8bit raw-text
642  @end quotation  @end quotation
643    
644  Likewise, a coding systme doesn't guarantee the other way of roundtrip  Encoding buffer text and then decoding the result can also fail to
645  identity, i.e. encoding buffer text into a coding system followed by  reproduce the original text.  For instance, when you encode Latin-2
646  decoding again with the same coding system will produce the different  characters with @code{utf-8} and decode the result using the same
647  buffer text.  For instance, when you encode Latin-2 characters by  coding system, you'll get Unicode characters (of charset
648  @code{utf-8} and decode it back by the same coding system, you'll get  @code{mule-unicode-0100-24ff}).  When you encode Unicode characters
649  Unicode charactes (of charset @code{mule-unicode-0100-24ff}), and when  with @code{iso-latin-2} and decode them back with the same coding
650  you encode Unicode characters by @code{iso-latin-2} and decode it back  system, you'll get Latin-2 characters.
 by the same coding system, you'll get Latin-2 characters.  
651    
652  @cindex end of line conversion  @cindex end of line conversion
653    @dfn{End of line conversion} handles three different conventions used    @dfn{End of line conversion} handles three different conventions used

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26