views:

104

answers:

2

Hi, I am new in this area.

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, will some one help me??? Please it's urgent...

+2  A: 

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!)".

APC
The linked-to page is about unicode support in php 6, which is still under development.
troelskn
Fair point, the OP does specify PHP 5. I have removed the link.
APC
+1  A: 

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.

troelskn