Using ANSI character encoding

JohnnyJ
Posts: 1
Joined: Sun Jan 19, 2025 12:38 pm

Using ANSI character encoding

Postby JohnnyJ » Sun Jan 19, 2025 12:43 pm

Windows 10, VS Code with PlatformIO, compiling for ESP32

The source code is encoded with Windows-1252 as I use the ANSI character set of all 256 8 bit characters needed for a font to a TFT display. Using UTF-8 will corrupt the output totally.

In platformio.ini:
build_flags = -fexec-charset=windows-1252 -finput-charset=windows-1252

results in this error when compiling:
cc1plus.exe: error: no iconv implementation, cannot convert from windows-1252 to UTF-8

The iconv package: LibIconv for Windows
is installed and iconv.exe is in the path

What is missing here?

Who is online

Users browsing this forum: brazoayeye, oz1cmdk and 107 guests