I have a string
𝖆𝖇𝖈
and I want the get the second character from this string
// with a normal string the result is
var normalString = "abc"
normalString[1] // -> b
// but with this one the reslt is
var weirdString = "𝖆𝖇𝖈"
weirdString[1] // -> � I get this "replacement charactere" instead of 𝖇
1) You can use spread syntax here to spread string into an array
const weirdStringArr = [...weirdString];
2) Access the UNICODE symbol using index
weirdStringArr[1]
var weirdString = "𝖆𝖇𝖈";
const weirdStringArr = [...weirdString];
console.log(weirdStringArr[1]);