Non ASCII characters in custom fields are incorrectly synced between pcb and schematic in macOS Ventura 13.7

Description

Non ASCII characters like Ω or € in custom fields are incorrectly synced between pcb and schematic in macOS Ventura 13.7. It works in Linux and Windows. macos2

Steps to reproduce

  1. Open the attached project issue77.zip on a macOS system
  2. Go to the PCB Editor
  3. Update Schematic from PCB...
Expected behavior Current behavior
Linux linux macOS Ventura 13.7 macos
Windows windows

KiCad Version

Application: KiCad Schematic Editor x86_64 on x86_64

Version: 8.0.5, release build

Libraries:
	wxWidgets 3.2.5
	FreeType 2.13.2
	HarfBuzz 8.3.0
	FontConfig 2.15.0

Platform: macOS Ventura Version 13.7 (Build 22H123), 64 bit, Little endian, wxMac
OpenGL: ATI Technologies Inc., AMD Radeon Pro 5500M OpenGL Engine, 2.1 ATI-4.14.1

	wxWidgets: 3.2.5 (wchar_t,wx containers)
	Boost: 1.84.0
	OCC: 7.7.2
	Curl: 7.87.0
	ngspice: 42
	Compiler: Clang 14.0.3 with C++ ABI 1002

Build settings:
Edited by Daniel Heisig