开发者

MSSQL php select from one encoding and insert to another

This is a little tricky - I have a db with table开发者_如何学Cs encoded as utf-8, I also got 1 view with hebrew_ci encoding.

I need to select stuff from the view and insert it to one table, with a php script, how can I do it without massing up the Hebrew characters?


maybe you could use PHP Multi-Byte functions, especially mb_convert_encoding.

Note that hebrew_ci is a collation, not a charset. I guess that the hebrew charset you use is ISO-8859-8, according to this article, and the fact that hebrew_ci seems to be a MySQL collation rather than a MSSQL one (check this).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜