Is there the limit of character length in .grc file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-10-29
08:54 AM
- last edited on
2022-09-29
10:04 AM
by
Daniel Kassai
When I edit the .grc file,e.g I compile the code. the error occur, But I set the less characters, these is not error. I want to know whether there is the limit of chinese characters in grc file.
thanks.
Solved! Go to Solution.
- Labels:
-
Add-On (C++)
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-11-08 03:22 PM
Please make sure that your GRC file's encoding is "UTF-8 with BOM".

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-10-29 02:53 PM
Could you please upload the file or copy-paste the relevant part here, so I can try to reproduce the error?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-10-30 02:00 AM
The relevant code :
'GDLG' ID_DIALOG_FILE_RENAME Modal | noGrow 100 100 720 734 "文件命名配置" { /* [ 1] */ Button 554 694 78 30 LargePlain "保存" /* [ 2] */ Button 642 694 78 30 LargePlain "取消" /* [ 3] */ Button 466 694 78 30 LargePlain "应用" /* [ 4] */ TextEdit 15 42 400 30 LargePlain 100 /* [ 5] */ CheckBox 15 99 200 30 LargePlain "启用字符分隔符" /* [ 6] */ PopupControl 15 163 150 30 80 3 /* [ 7] */ PopupControl 185 163 150 30 80 3 /* [ 8] */ LeftText 15 20 84 20 LargePlain "总文件平面名称" /* [ 9] */ LeftText 15 141 60 20 LargePlain "字符分隔符" /* [ 10] */ LeftText 185 141 72 20 LargePlain "建筑编号排序" }Thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-11-08 03:22 PM
Please make sure that your GRC file's encoding is "UTF-8 with BOM".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-11-12 08:13 AM
Tibor wrote:thanks
We were not able to reproduce your issue. It built successfully for us without any errors.
Please make sure that your GRC file's encoding is "UTF-8 with BOM".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-11-19 08:18 AM
Tibor wrote:Thanks. My grc file's encoding is "UTF-8 with BOM". But Often "illegal character" error occurs when there are many chinese characters in my grc file.
We were not able to reproduce your issue. It built successfully for us without any errors.
Please make sure that your GRC file's encoding is "UTF-8 with BOM".
The error occurs in ***.grc.rc2.i file. How can I solve it ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-11-19 06:01 PM
This problem occurs in Simple Chinese version of vs studio.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-11-20 02:18 AM
leilei wrote:Thank you very much.
When you make a compilation error, put a space after the Chinese character.I compiled it in this way.
This problem occurs in Simple Chinese version of vs studio.
According to your method, this problem is solved.
Besides, I use Simple Chinese version of vs 2015.But I install the English Language pack ,the problem also occurs. I think the problem may be not caused by the vs language version ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-12-02 01:38 PM
How do you you call ResConv in the custom build step of your .grc file?
Thanks, Akos
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-12-03 02:14 AM
Akos wrote:My method that call ResConv is:
Hi,
How do you you call ResConv in the custom build step of your .grc file?
Thanks, Akos
cl /nologo /X /EP /P /I "..\..\Support\Inc" /I "..\..\Support\Modules\DGLib" /I ".\Src" /FI"..\..\Support\Inc\utf8header.h" /DDEBUG /DWINDOWS /Fi"$(OutDir)\RO\$(ProjectName).grc.rc2.i" "RINT\$(ProjectName).grc"
"..\..\Support\Tools\Win\ResConv.exe" -m r -D WINDOWS -T W -q utf8 1252 -i "$(OutDir)\RO\$(ProjectName).grc.rc2.i" -D _DEBUG -o "$(OutDir)\RO\$(ProjectName).grc.rc2"