Altium PCB text import uses wrong character encoding
Description
When importing Altium board with most recent pcbnew Russian text found on board is imported as accented latin characters in place of Russian text.
Steps to reproduce
- Use Windows 10 build 1909 with Russian localization. Or, I guess, any Windows with CP1251 as a system encoding will do.
- Create a board in Altium which contains Russian text as text items.
- Open standalone pcbnew and make it import created board.
After that I got board with text ÎÒÄÅË:
while in Altium this was ОТДЕЛ:
. Because in order to get from first to the second I need to do two iconv’s: UTF8 → latin1 then cp1251 → UTF8 I assumed that this is the issue with Altium saving using 8-bit encoding and KiCAD assuming latin1 while it should either ask or assume system encoding.
KiCad Version
Application: KiCad PCB Editor
Version: (5.99.0-9812-gfee3c41c40), release build
Libraries:
wxWidgets 3.0.5
libcurl/7.71.0 OpenSSL/1.1.1g (Schannel) zlib/1.2.11 brotli/1.0.7 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.41.0
Platform: Windows 10 (build 18363), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Mar 17 2021 10:01:53
wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.73.0
OCE: 6.9.1
Curl: 7.71.0
ngspice: 34
Compiler: GCC 10.2.0 with C++ ABI 1014
Build settings:
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_PYTHON3=OFF
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
KICAD_SCRIPTING_ACTION_MENU=ON
KICAD_USE_OCE=ON
KICAD_SPICE=ON
Edited by David Beinder