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 roundtrip identity: |
In general, a coding system doesn't guarantee roundtrip identity: |
632 |
decoding text then encoding the result in the same coding system can |
decoding a byte sequence using coding system, then encoding the |
633 |
produce a different byte sequence from the one you originally decoded. |
resulting text in the same coding system, can produce a different byte |
634 |
However, the following coding systems do guarantee that the result |
sequence. However, the following coding systems do guarantee that the |
635 |
will be the same as what you originally decoded: |
byte sequence 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 |
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 |
Encoding buffer text and then decoding the result can also fail to |
Encoding buffer text and then decoding the result can also fail to |
645 |
reproduce the original text. For instance, when you encode Latin-2 |
reproduce the original text. For instance, if you encode Latin-2 |
646 |
characters with @code{utf-8} and decode the result using the same |
characters with @code{utf-8} and decode the result using the same |
647 |
coding system, you'll get Unicode characters (of charset |
coding system, you'll get Unicode characters (of charset |
648 |
@code{mule-unicode-0100-24ff}). When you encode Unicode characters |
@code{mule-unicode-0100-24ff}). If you encode Unicode characters with |
649 |
with @code{iso-latin-2} and decode them back with the same coding |
@code{iso-latin-2} and decode the result with the same coding system, |
650 |
system, you'll get Latin-2 characters. |
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 |