我在从mysql中检索带有撇号的数据时遇到了问题。我在保存带有撇号的数据方面没有问题,因为我在将数据插入数据库时使用mysqli_real_escape_string,但在检索数据时会出现错误。我在PHP中检索数据的示例代码是mysqli_query($con,"SELECT column1data FROM Table1 WHERE column2data LIKE &
我正在尝试解析一个字符串,并且我需要使用substring来完成它。该字符串包含撇号字符。我的问题是,如何使用temp让String.indexOf获得撇号字符的索引?//temp variable currently contains the string 'hello' including the apostrophe character
String finalWord