ktfmt icon indicating copy to clipboard operation
ktfmt copied to clipboard

Unicode characters through stdin not handled properly with non-standard UTF setting

Open UteHaus opened this issue 2 years ago • 2 comments

When I format with ktfmt and have (german) umlauts like "ä" oder "ü" in a string value, I get this warning: grafik

The input value is: "Müller Maha Ag" Actual Result with ktfmt: "M�ller M�ha Ag" Expected Result: "Müller Maha Ag"

My setup: IDE: IntelliJ IDEA 2022.3.2 JAVA: 17 Kotlin: 1.7.22 OS: Windows 11

UteHaus avatar Mar 03 '23 09:03 UteHaus

It is a Intellij problem.

UteHaus avatar Mar 03 '23 09:03 UteHaus

@hick209 This is probably fixed. UTF8 is now assumed for all inputs and the system charset is ignored.

nreid260 avatar Apr 23 '24 06:04 nreid260

Confirmed that this is now fixed (tested on 0.49)

hick209 avatar May 03 '24 13:05 hick209