I'm modifying my Delphi projects to use a version-information resource file instead of storing version information within the project file.
My VersionInfo.rc file:
1 VERSIONINFO
FILEVERSION 1,10,0,999
PRODUCTVERSION 1,10,0,0
FILEOS 0x4
FILETYPE 0x1
{
BLOCK "StringFileInfo"
{
BLOCK "040904E4"
{
VALUE "CompanyName", "Company Inc.\0"
VALUE "FileDescription", "Product\231\0"
VALUE "FileVersion", "1.10.0.999\0"
VALUE "InternalName", "Product\231\0"
VALUE "LegalCopyright", "\251 2016 Company Inc.\0"
VALUE "LegalTrademarks", "Company\231 Product\231\0"
VALUE "ProductName", "Product\231\0"
VALUE "ProductVersion", "1.10\0"
}
}
BLOCK "VarFileInfo"
{
VALUE "Translation", 0x409, 1252
}
}
The registered trademark (\256) and copyright (\251) symbols display properly in the file's properties dialog, but the trademark (\231) does not show at all. It appears that no character is shown in its place unless it's unprintable. I've also tried using the symbol directly in the resource instead of the octal code and I see the same behavior.
When the trademark symbol is stored as part of my project options it displays properly.
How do I insert the trademark symbol in my resource?
EDIT: Additional info
I'm using RAD Studio 10.1 Berlin and I was following the answer from this StackOverflow post to create my resource file, configure my project options, and to include the resource in the project source using {$R 'VersionInfo.res' 'VersionInfo.rc'}. I had tried encoding my .rc file using ANSI, UTF-8, UTF-16 BE and LE and trade mark either fails to show properly in file properties dialog or there is a BRCC32 error when building.
I had found this web page suggesting to use octal code for copyright. I had tried the octal codes for trade mark in my VersionInfo.rc file and again saw the same.
I had also tried compiling the resource using rc.exe and adding it to my project using "Add to Project..." menu item from Delphi's Project menu. I received "Unsupported 16bit resource..." errors when building.