Now some fields in my database are to be converted to Tibetan unicode characters. So I've decided to use equivalent control TntEdit, which supports unicode. I can type the Tibetan charaters onto the TntEdit controls very nicely. But when I try to save the data using the method stated above, all my unicode characters get converted to ???????.
Thanks
Dorji
Bhutan
Can anyone help me with this problem. My system upgrade project is already stalled for quite a long time.
>use equivalent control TntEdit, which supports unicode. I can type the
Tibetan charaters onto the TntEdit >controls very nicely. But when I try to
save the data using the method stated above, all my unicode >characters get
converted to ???????.
Question marks tend to mark an unsuccesful conversion between Ansi and
Unicode.
I assume that you are storing Unicode string data in NCHAR and NVARCHAR
fields (as they are used in SQL Server for storing Unicode data), aren't
you?
Furthermore, you should use the 'N' prefix in your queries, so for instance
use
"Name=N'" + txtName & "'"
instead of
"Name='" + txtName & "'"
Hope this helps.
--
Best regards
Erik Lindberg
Product specialist / Multilizer VCL components 6.x beta
Multilizer
www.multilizer.com
Thank you for your prompt response. I do use NVARCHAR fields in the SQL Server. The prefix N (Name=N' + txtName + "'"), comes out to be wrong syntex for SQL Server as it would create something like this: Update tblBioData set Name=N'Dorji'. So I'm still stuck at this point.
Thanks
Dorji
Thanks
Dorji
--
Best regards.
TsiLang Components Suite - Best Globalization Tool 2004
http://www.tsilang.com
"Dorji" <va...@druknet.bt> wrote in message
news:43d6f3f5$1...@newsgroups.borland.com...
WideString('abc') + SomeWideString
--Troy