1

我应该将 imsmanifest.xml 保存为 UTF-8 还是 ANSI ?

ADL 测试套件 1.2 似乎因 UTF8 标头而失败,但另一方面,如果不是 UTF8,某些 LMS 将失败。

4

2 回答 2

1

UberAlex is correct. SCORM leaves it up to the XML parser. SCORM merely says that it needs to be valid XML. If you are getting errors with XML parsers, make sure that the tool you are using to edit and save your manifest actually encodes the document using the same encoding that you specify. If you specify that the document is UTF-8, but the editor saves it as ASCII you can run into problems.

Also of note, in the run-time portion of SCORM, the characters are encoded as ISO 10646 (or, unicode. Since some data in the manifest can feed in to the run-time, ensure that your strings will be compatible with ISO 10646.

Also, make sure that any URLs, file paths and parameter strings are properly encoded for HTTP use.

于 2009-09-29T17:39:09.807 回答
0

这是不一致的。我认为最好的方法是使用 UTF-8 并确保它在 xml 标头中明确声明。如果您查看定义文件 http://www.scorm.com/scorm-explained/technical-scorm/content-packaging/xml-schema-definition-files/有些是 UTF-8 而有些不描述编码.

指南中似乎也没有提到编码 http://www.adlnet.gov/Technologies/scorm/SCORMSDocuments/SCORM%20Resources/ADLGuidelines_V1PublicComment.zip

我猜这个问题应该在下面的层处理,即使用 xml 解析器。我能给出的唯一建议是在 xml 标头中添加显式编码信息,并确保它们一致 - 在文本编辑器中打开文件并确保它是 UTF-8。

编辑:标题应该是这样的:

<?xml version="1.0" encoding="UTF-8"?>
于 2009-09-29T13:43:03.137 回答