Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9235967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:10:39+00:00 2026-06-18T07:10:39+00:00

I have an Inno Setup installer that creates custom wizard pages using Pascal Script.

  • 0

I have an Inno Setup installer that creates custom wizard pages using Pascal Script. The installer appears to use the proper patterns for supporting other languages. However, the custom wizard pages, created with CreateCustomPage(), show garbage characters in them, instead of the strings in the target language (which in this case, is Russian.)

The strings are stored in a [CustomMessages] section, using include files for each language. Though I’m a newbie with Inno Setup, the strings do appear to be set up in a manner that is consistent with the Inno Setup examples, and with instructions I’ve read from various sources on the internet.

Anyway, the custom wizard pages and the controls on them are created using code such as:

Page := CreateCustomPage(
  PreviousPageId,
  ExpandConstant('{cm:MyStringConstant}'),
  ExpandConstant('{cm:MyOtherStringConstant}')
);

Then, in the strings include file (again, for Russian), the strings are defined as:

[CustomMessages]
ru.MyStringConstant=<Russian string>
ru.MyOtherStringConstant=<Russian string>

But when the installer runs, the strings on the custom wizard pages appear with garbage characters (as if the UTF-8 characters are being interpreted as Ansi), rather than in the proper Russian text.

The other pages in the installer (ie, those not created with CreateCustomPage()) appear correctly.

So, my question is, does something special need to be done when using ExpandConstant() with UTF-8 strings? Or is there a better function to use to retrieve UTF-8 strings from the [CustomMessages] section?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T07:10:40+00:00Added an answer on June 18, 2026 at 7:10 am

    As long as you’re running the unicode version of the Inno Compiler, then UTF-8 is supported in the main ISS file. You CAN NOT use UTF-8 or any unicode format in the ISL language files as these must be in ANSI with the appropriate codepage specified.

    You must also use unicode character literals to specify unicode text in the [Code] section.

    See the Unicode Inno Setup article in the help file for details.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application installer created with Inno Setup that deploys multiple binaries and
I have a simple inno-setup script that allows my setup to install either the
I am building an Inno Setup script and have libraries that need to be
I have an Inno Setup installer that needs to restart the explorer (in order
I have an Inno Setup installer for an app that offers the user a
I have setup an inno setup script that installs my application. The resulting setup.exe
I have a VB6 application, the installer is compiled using INNO Setup. The installer
I have the impression that Inno Setup completely bypasses Windows Installer. Can anyone confirm
I have a Inno Setup project that I want to check if the application
I have an Inno Setup installer with a Tasks list which has gotten quite

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.