Download Pelles C here: http://www.pellesc.se
Quote from: Robert on January 23, 2026, 06:03:43 PMMy interest in your resurrection of the Pelles C Export addin is in the "Export to HTML" facility. I think it can handle Unicode identifiers and quotation mark embedded Unicode strings.
Quote from: Robert on January 23, 2026, 06:03:43 PMIf you are interested in developing a Unicode capable "Export to HTML" facility, you might find some help studying the BCX translated C codes of the example on the webpage
Quote from: TimoVJL on January 23, 2026, 05:43:50 PMHow that helps RTF coding ?
EDIT:Quote from: Robert on January 23, 2026, 06:03:43 PMUnfortunately, the RTFDEFS.H document referenced is not obviously available.How to Obtain the WinWord Converter SDK (GC1039)
// \fcharset, \cchs argument values
// some of these values may also be #defined in windows.h; here's the
// complete list
#define ANSI_CHARSET 0
#define DEFAULT_CHARSET 1
#define SYMBOL_CHARSET 2
#define INVALID_CHARSET 3 // nil value
#define MAC_CHARSET 77
#define SHIFTJIS_CHARSET 128 // CP 932: Japanese
#define HANGEUL_CHARSET 129 // CP 949: Korean
#define JOHAB_CHARSET 130
#define GB2312_CHARSET 134 // CP 936: PRC
#define CHINESEBIG5_CHARSET 136 // CP 950: Taiwan
#define GREEK_CHARSET 161
#define TURKISH_CHARSET 162
#define HEBREW_CHARSET 177
#define ARABIC_CHARSET 178
#define ARABICTRADITIONAL_CHARSET 179
#define ARABICUSER_CHARSET 180
#define HEBREWUSER_CHARSET 181
#define BALTIC_CHARSET 186
#define RUSSIAN_CHARSET 204
#define THAI_CHARSET 222
#define EASTEUROPE_CHARSET 238
#define PC437_CHARSET 254
#define OEM_CHARSET 255
Quote from: John Z on January 23, 2026, 12:59:59 PMAssuming the code comments are in the users default code page language then#include <windows.h>
#include <stdio.h>
int main() {
UINT user_codepage = GetACP(); // Retrieve the system default Windows ANSI code page
printf("The user's default Windows ANSI code page is: %u\n", user_codepage);
// Optional: Keep the console window open to view the output
printf("Press Enter to exit...");
getchar();
return 0;
}
or variation thereof can get the correct code page to encode in the output file(s).
Code snippet provided by Google 'AI? overview -however only the first line is relevant
John Z
Quote\fcharsetN Specifies the character set of a font in the font table. Values for N are defined by Windows header files, and in the file RTFDEFS.H accompanying this document.
Quote from: Robert on January 23, 2026, 06:03:43 PMUnfortunately, the RTFDEFS.H document referenced is not obviously available.How to Obtain the WinWord Converter SDK (GC1039)
#include <windows.h>
#include <stdio.h>
int main() {
UINT user_codepage = GetACP(); // Retrieve the system default Windows ANSI code page
printf("The user's default Windows ANSI code page is: %u\n", user_codepage);
// Optional: Keep the console window open to view the output
printf("Press Enter to exit...");
getchar();
return 0;
}
however only the first line is relevant 
Quote from: TimoVJL on January 22, 2026, 11:03:02 PMThose are connected.{\f1\fnil\fcharset161{\*\fname Courier New;}Courier New Greek;}
\f1\'f3\'ea\'e1\'f4
With UNICODE 16LE a bit less conversion, have to find right fontset for chars.
https://www.oreilly.com/library/view/rtf-pocket-guide/9781449302047/ch04.html
I have low interest for that.
{\f1\fnil\fcharset161{\*\fname Courier New;}Courier New Greek;}
\f1\'f3\'ea\'e1\'f4Quote from: MrBcx on January 22, 2026, 04:04:36 PMA minor update that silences strict warnings - 3 instances replacing () with (void).
Quote from: TimoVJL on January 22, 2026, 12:42:11 PMBetter to show important things too:{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 Courier New;}{\f1\fnil\fcharset161{\*\fname Courier New;}Courier New Greek;}}Streamed parsing don't work, as have to separate RTF header while processing.
{\*\generator Msftedit 5.41.21.2510;}\viewkind4\uc1\pard\lang1035\f0\fs22 #include <windows.h>\par
#include <stdio.h>\par
\par
static int OrigCodePage;\par
static const char* \f1\'f3\'ea\'e1\'f4;\par
static const char* \'e4\'f5\'f3\'ea\'e1\'f4\'e1\'ed\'ef\'de\'f4\'f9\'ed;\par
Page created in 0.045 seconds with 15 queries.