elou
Posts: 96
Joined: Tue Apr 14, 2015 9:12 am

Special chars not supported in .aic

Hello,
I'm actually encountering an issue while using Advanced Install 16.9 with Text given as properties via .aic files.
I've just created an hello-world Setup with a Property displayed in a Dialog.
When I set the Property Content over the .aic file, all non-ascii chars are not correctly displayed.
I've tried several charsets for the content of aic file, but nothing helps.

Regards, Éric.

notes:
1) I encounterring problems while attaching more screenschots.
2) the aic file could only be added in the post with the .txt extention
Attachments
ai.report.01.PNG
ai.report.01.PNG (33.55 KiB) Viewed 6597 times
SpecialChars.aip.aic.txt
(108 Bytes) Downloaded 268 times
SpecialChars.aip
(12.98 KiB) Downloaded 279 times
elou
Posts: 96
Joined: Tue Apr 14, 2015 9:12 am

Re: Special chars not supported in .aic

more attached files
Attachments
ai.report-02.PNG
ai.report-02.PNG (41.27 KiB) Viewed 6593 times
ai.report.03.PNG
ai.report.03.PNG (135.28 KiB) Viewed 6593 times
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Special chars not supported in .aic

Hello Éric.

By default, the command line interpreter (cmd.exe) and PowerShell (powershell.exe) accept the UTF-8 encoding.
specChars.png
specChars.png (13.91 KiB) Viewed 6585 times

However, as you have noticed, when trying to execute the .aic file against the AdvancedInstaller.com executable, this fails. As stated in our article, the .aic file should use the Unicode or the ANSI encodings.

Executing a file of commands

I am not completely sure, but I believe this behavior might occur because it tries to automatically convert the UTF-8 encoding (in which your document is saved) to either ANSI or Unicode, which results in the characters being wrongly displayed.

To avoid this, please run the command separately, like this:

Code: Select all

AdvancedInstaller.com /edit <path_to_aip> /SetProperty SpecialCharacters="aäoöuüsß%&cÇ"
Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
elou
Posts: 96
Joined: Tue Apr 14, 2015 9:12 am

Re: Special chars not supported in .aic

Hello Catalin,
thank for your reply.
The trick with /edit /SetProperty could help.
It's not realy fine but it helps.

I think you should consider to support utf-8 in aic files, as it is nowadays the standard.
Konverting the file to ANSI do not helps.

Regards, Éric.
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Special chars not supported in .aic

Hello Éric,

You are always welcome!

I am glad my suggestion helped.
I think you should consider to support utf-8 in aic files, as it is nowadays the standard.
Yes, I have added this on our TODO list of improvements.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Special chars not supported in .aic

Hello Éric,

Upon some further investigations, it looks like I have found a way in which you can achieve what you need.

Please open your .AIC file and convert it to the "UCS-2 LE BOM" encoding. After doing so, the special characters should be displayed as expected:

specialCharacters.png
specialCharacters.png (236.15 KiB) Viewed 6357 times

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Special chars not supported in .aic

Hello Éric,
I think you should consider to support utf-8 in aic files, as it is nowadays the standard.
This improvement has been added in Advanced Installer 17.7, released on November 25th, 2020.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”