That is what I tried from the beginning. Outputs ???? Maybe J cannot handle this.
Thanks, Michael
bill lam
unread,
May 20, 2025, 9:14:33 AM5/20/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Mike Chris, forum
I suggested
ddfet ('select ''こんにちは'''ddsel ch), 1000
NOT
ddfet ('select N''こんにちは'''ddsel ch), 1000
why there is a w in the output?
Mike Chris
unread,
May 20, 2025, 9:27:40 AM5/20/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to forum
Hi, The N is needed before the single quote, to inform SQL Server that the following is unicode string. Select N'こ' not Select 'こ'
I have tried
ddfet ('select ''こんにちは'''ddsel ch), 1000
returns ????
Thanks, Michael
bill lam
unread,
May 20, 2025, 9:40:12 AM5/20/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fo...@jsoftware.com
The N is not needed in J. If there are characters above 127, the whole sentence will be converted to utf16 before sending to SQL server. I don't have access to SQL Server to test for the time being.
Mike Chris
unread,
May 20, 2025, 9:43:23 AM5/20/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to forum, bill lam
from within MS SQL Server select WithN=N'こんにちは' こんにちは select WithoutN='こんにちは' ?????