# 字符集

字符集是定义文件所用字符集的 LOAD 语句中的一个文件说明符。

ansi、oem 和 mac 说明符用于 QlikView 中，目前仍可使用。但是，当使用最新版 Qlik Sense 创建 LOAD 语句时，不会生成这几个说明符。

语法：

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptSpecifiers/character-set.htm)utf8 | unicode | ansi | oem | mac | codepage is

参数：

参数

| 参数 | 说明 |
| --- | --- |
| utf8 | UTF-8 字符集 |
| unicode | Unicode 字符集 |
| ansi | Windows、代码页 1252 |
| oem | DOS、OS/2、AS400 等 |
| mac | 代码页 10000 |
| codepage is | 通过 codepage 说明符，可以将任何 Windows 代码页用作 N。 |

限制：

从 oem 字符集进行的转换在 macOS 中未实现。如果未指定任何一项，将假设在 Windows 下使用代码页 1252。

示例：

`LOAD * from a.txt (utf8, txt, delimiter is ',' , embedded labels)` `LOAD * from a.txt (unicode, txt, delimiter is ',' , embedded labels)` `LOAD * from 
 a.txt (codepage is 10000, txt, delimiter is ',' , no labels)`

## 了解详情

* [Load](https://help.qlik.com/zh-CN/sense/November2024/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Load.htm)