Select statement for arabic data not working!!

Last post 07-28-2008 9:23 AM by cpcdafoor. 0 replies.

Sort Posts:

  • Select statement for arabic data not working!!

    07-28-2008, 9:23 AM
    • Member
      point Member
    • cpcdafoor
    • Member since 07-28-2008, 9:09 AM
    • Posts 1

    Hi,

    In my asp.net code, I am trying to retrieve some data from an oracle database using a select statement that includes an arabic string (see in green). The select statement is as follows:

        select * from T_GOG_PHONEBOOK where afl_name like '%عبدالله جابر%' and rownum < 50

    For some reason, I don't get any results although, using the same select statement in SQL Navigator, I do get the needed results. The character sets in the database are WE8ISO8859P1 and AL16UTF16 for NLS_CHARACTERSET, and NLS_VCHAR_CHARACTERSET respectively (i cannot change them!).

    What could be the reason behind this? Here are some things I tried:

    • changing the locale! (I don't know if what I did was right. I think not)
    • changing Oracle NLS_Lang in the registry (again, just trial and error)
    • encoding the string in my code. ?!?!

     Please help me in this issue. It's been weeks :(

     Regards,

Page 1 of 1 (1 items)