Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparing data Foxpro table against SQL server unicode
Message
 
 
To
06/05/2010 20:16:17
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01463508
Message ID:
01463544
Views:
52
The SYS(987) function controls if Unicode data is returned as is or converted to ASCII.

>I placed data into cursor via sqlexec from SQL Server 2008 . Some Arabic text comes as "?????"
>Previously SQL data was loaded from Foxpro also with sqlexec
>and foxpro value was transformed to unicode like below before being put into Insert statement
>
>xunicode = strconv(xutf8,12)
>xres = 'convert(nvarchar(' + transform(len(xutf8)) + '),0x' + strconv(xunicode,15)+')'
>
>So when compare values as they are :
>from foxpro side I've got text with diacritical marks
>from cursor side ?????
>
>How can I compare those two on equality ?
>
>
>foxpro without conversion
>MOUSTAFA ABBES مصطفى عباس
>sql cursor
>MOUSTAFA ABBES ????? ????"
>
>How it is seen in Server Management Studio
>MOUSTAFA ABBES مصطفى عباس
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform