In Java, I am generating a string with letters A and B with a COMBINING OVERLINE U+0305 character in between.
@Test
public void test() {
System.out.println("A\u0305B");
}
I get this in IDEA:
But if I copy to here, it will become A̅B.
This one is from the Chrome console:
I was confused by the combining character's combining order. Which one is correct?
I was writing this in Kotlin and compiling to JavaScript to run in the browser. Debugging in IDEA is correct, but the browser shows a different answer.

