【发布时间】:2021-10-03 08:47:43
【问题描述】:
我有一个字符串
????????????
我想从这个字符串中获取第二个字符
// 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 ????
【问题讨论】:
-
如何检查出字符串?
-
@ClausBönnhoff 我将它记录在控制台中-> console.log(weirdString[1])
标签: javascript special-characters