Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个从 Filemaker 数据库中提取的字符串,应该读取
Pete Dye 设计的高尔夫球场
但我的数组将其返回为
Pete Dye——设计的高尔夫球场
我认为这与编码有关,但我不确定......我该如何纠正这个错误?如果归根结底,我不介意为所有问题创建一个 str_replace() 数组,但不必单独查找异常会很好。
谢谢!
There may not be anything wrong with it, but the browser is displaying it as such. Make sure your page has this before you print_r or var_dump your array:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />