Skip to content

Commit

Permalink
update encoding doc
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Mar 21, 2024
1 parent db9a06b commit 7974223
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manual/project_target.md
Original file line number Diff line number Diff line change
Expand Up @@ -3057,6 +3057,8 @@ Xmake will automatically adapt the flags internally to the different compilers.

This is a new interface in version 2.8.2, we can use this interface to set the encoding of source and target files.

All supported encodings: utf-8, gb2312 (msvc)

By default, just specifying the encoding will work for both the source and target files.

```lua
Expand Down
2 changes: 2 additions & 0 deletions zh-cn/manual/project_target.md
Original file line number Diff line number Diff line change
Expand Up @@ -3061,6 +3061,8 @@ Xmake 会在内部自动根据不同的编译器,去适配对应的 flags。

这是 2.8.2 版本新增的接口,我们可以用这个接口设置源文件、目标执行文件的编码。

目前支持的编码:utf-8, gb2312 (msvc)

默认情况下,我们仅仅指定编码,是会同时对源文件,目标文件生效。

```lua
Expand Down

0 comments on commit 7974223

Please sign in to comment.