2010-01-30 14:27
浏览 22


I am currently making a web application, I want to add Unicode support in my application. My application is a search based application. I store some keyword and some text in my database, and show the result according to keyword in a search query.

I am using Oracle 10g XE edition and PHP 5.

I know nothing about adding Unicode.

图片转代码服务由CSDN问答提供 功能建议

我目前正在制作一个Web应用程序,我想在我的应用程序中添加Unicode支持。 我的应用程序是基于搜索的应用程序 我在我的数据库中存储了一些关键字和一些文本,并在搜索查询中根据关键字显示结果。

我正在使用Oracle 10g XE版和PHP 5.


  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • dongzhijing8202 2010-01-30 14:48

    First of all, have you downloaded a version of XE which supports UNICODE? Not all of them do. Check out the XE Download page.

    OTN has a white paper on Unicode in the database. It's a few years old now, but it still covers the ground. Read it now. If you need detailed information regarding implementation read the Oracle Globalization Reference.

    Finally, no overview of Unicode would be complete without a link to Joel's article "The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)".

    打赏 评论
  • duangong0690 2010-01-30 14:55

    PHP isn't aware of charsets; Its strings are byte-arrays. This means that if you want to handle unicode strings, you will have to deal with encodings manually. The most common solution is to use utf-8 encoded strings both internally and externally. Without knowing for sure, I'd expect that Oracle can communicate in utf-8?

    Generally, if you don't know the difference between bytes, characters, encodings and charsets, you'll probably get burned.

    打赏 评论

相关推荐 更多相似问题