Results 1 to 3 of 3
  1. #1
    Join Date
    May 2004
    Posts
    144

    Unanswered: problem with mssql & php

    hi
    recently i start a project with php & MSsql. i have problem with showing arabic-persian characteres in my php pages.
    i a unisng this syntax in php & MYsql project:
    Code:
    mysql_query( "SET NAMES 'latin1'" );
    & it is ok, but cant find any similar syntax for MSsql.
    anyone can help?

  2. #2
    Join Date
    May 2004
    Location
    Seattle
    Posts
    1,313
    are you storing the fields in question as unicode? that is, nchar/nvarchar/ntext?

  3. #3
    Join Date
    May 2004
    Posts
    144
    yes, & the db collation is arabic_ci_as. & when i set the php files charset to utf-8, i cant see data correctly. but when i save my pages with charset=1256, i see data selected from db correct, but in this case i cant type static txt (static txt must typed in non-unicode way).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •