Hello Bill, I couldn't find the definition for ucs2.
I've browsed the Unicode FAQ on this site, http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 , and it seems that UCS2 is different from UTF8 ... im just curious why use the ucs2 method in your example. :) I'm still working on the problem though. r/Alex -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of bill_lam Sent: Saturday, September 30, 2006 6:53 PM To: Programming forum Subject: Re: [Jprogramming] Unicode parameter in WD function (J504) Alex Rufon wrote: > I know that everyone should be upgrading to J601 but my client is > running a production system in China and I'm in the Philippines so > updates are a bit tricky. > I agree. It takes one or two days to convert the code, but it takes several months to fully debug and field test. > So here's the problem. I have a VB6 COM DLL which exposes a Function > Returning UNICODE characters from wd is not a problem since all I had > to do was change the code to: > vdata=. u: wd 'olemethod r base executeSQL *', y. > Assume the VB6 COM DLL is written by you, you may convert unicode to/from utf8 vdata=. ucs2 wd 'olemethod r base executeSQL *', utf8 y. u: alone cannot recover returning unicode. you need to change VB DLL to accept utf8 and return utf8. use WideCharToMultiByte and WideCharToMultiByte api to convert between unicode and utf8 -- regards, bill ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
