# 字元集

字元集是 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-TW/sense/May2025/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Load.htm)