Mercurial > vim
comparison runtime/doc/options.txt @ 24754:a4cb7499fa11 v8.2.2915
patch 8.2.2915: MS-Windows: when using "default" for encoding utf-8 is used
Commit: https://github.com/vim/vim/commit/ef8706fb84cfe8bd58b1b26b0742e42caf09655b
Author: K.Takata <kentkt@csc.jp>
Date: Mon May 31 18:40:49 2021 +0200
patch 8.2.2915: MS-Windows: when using "default" for encoding utf-8 is used
Problem: MS-Windows: when using "default" for encoding utf-8 is used.
Solution: Use the system encoding. (Ken Takata, closes https://github.com/vim/vim/issues/8300)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 31 May 2021 18:45:03 +0200 |
parents | e69e7133c9cf |
children | fd37be6dc258 |
comparison
equal
deleted
inserted
replaced
24753:1018030b38b2 | 24754:a4cb7499fa11 |
---|---|
3114 by "utf-8" or another Unicode encoding for this to work properly. | 3114 by "utf-8" or another Unicode encoding for this to work properly. |
3115 An entry for an 8-bit encoding (e.g., "latin1") should be the last, | 3115 An entry for an 8-bit encoding (e.g., "latin1") should be the last, |
3116 because Vim cannot detect an error, thus the encoding is always | 3116 because Vim cannot detect an error, thus the encoding is always |
3117 accepted. | 3117 accepted. |
3118 The special value "default" can be used for the encoding from the | 3118 The special value "default" can be used for the encoding from the |
3119 environment. This is the default value for 'encoding'. It is useful | 3119 environment. On MS-Windows this is the system encoding. Otherwise |
3120 when 'encoding' is set to "utf-8" and your environment uses a | 3120 this is the default value for 'encoding'. It is useful when |
3121 non-latin1 encoding, such as Russian. | 3121 'encoding' is set to "utf-8" and your environment uses a non-latin1 |
3122 encoding, such as Russian. | |
3122 When 'encoding' is "utf-8" and a file contains an illegal byte | 3123 When 'encoding' is "utf-8" and a file contains an illegal byte |
3123 sequence it won't be recognized as UTF-8. You can use the |8g8| | 3124 sequence it won't be recognized as UTF-8. You can use the |8g8| |
3124 command to find the illegal byte sequence. | 3125 command to find the illegal byte sequence. |
3125 WRONG VALUES: WHAT'S WRONG: | 3126 WRONG VALUES: WHAT'S WRONG: |
3126 latin1,utf-8 "latin1" will always be used | 3127 latin1,utf-8 "latin1" will always be used |