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]);