【发布时间】:2013-03-10 16:50:13
【问题描述】:
我正在尝试在 SQLite 中使用 INSTR 函数,但如果我使用 UTF8 字符,它会返回错误的值。如何避免这个问题?
select instr('akçe', 'a'); --returns 1 (Correct)
select instr('akçe', 'k'); --returns 2 (Correct)
select instr('akçe', 'ç'); --returns 0 (Wrong)
select instr('akçe', 'e'); --returns 3 (Wrong)
【问题讨论】: