浏览代码

Fix/improve 4a9204e0.

Martijn Laan 3 月之前
父节点
当前提交
21e62c47eb
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 2 1
      Files/Default.isl
  2. 1 0
      ISHelp/isetup.xml

+ 2 - 1
Files/Default.isl

@@ -14,7 +14,8 @@
 LanguageName=English
 LanguageID=$0409
 ; LanguageCodePage should always be set if possible, even if this file is Unicode
-LanguageCodePage=1252
+; For English it's set to zero anyway because English only uses ASCII characters
+LanguageCodePage=0
 ; If the language you are translating to requires special font faces or
 ; sizes, uncomment any of the following entries and change them accordingly.
 ;DialogFontName=

+ 1 - 0
ISHelp/isetup.xml

@@ -2346,6 +2346,7 @@ RightToLeft=no
 
 <p><b><a name="LanguageCodePage">LanguageCodePage</a></b> specifies the "code page" (character set) used by the compiler to convert any ASCII text in the language's files to Unicode text. Note that any text in the .iss file such as a [CustomMessages] entry for the language is never converted and should be in Unicode already.<br/>
 If no code page currently exists for the language, set <tt>LanguageCodePage</tt> to zero and only use Unicode text (UTF-8) in the languages's files.<br/>
+If the language only uses ASCII characters (like English), set <tt>LanguageCodePage</tt> to zero as well.<br/>
 If <tt>LanguageCodePage</tt> is set to zero but ASCII text is used in one of the language's files, the system code page will be used to convert the text in the file to Unicode.</p>
 
 <p><b><a name="DialogFontName">DialogFontName</a></b> and <b><a name="DialogFontSize">DialogFontSize</a></b> specify the font name and point size to use in dialogs. If no <tt>DialogFontName</tt> setting is present, then the value of the <link topic="setup_defaultdialogfontname">DefaultDialogFontName</link> [Setup] section directive is used for the font name. If the specified font name does not exist on the user's system or is an empty string, 8-point <i>Microsoft Sans Serif</i> or <i>MS Sans Serif</i> will be substituted.</p>