Welcome! Log In Create A New Profile

Advanced

UNICODE problem

Posted by YogiYang 
UNICODE problem
January 13, 2022 02:57PM
Hello,

I have a Combo whose content are coming from Database.

The content in database are in UNICODE. The data when loaded in Combo shows as expected in UNICODE.

Now I need to get the selected item in Combo (DisplayValue not StoredValue) and assign the same to Edit control.

When I do this the UNICODE text gets converted to ?????.

I have set the Edit control property for UNICODE. If I type any UNICODE text the Edit control or copy paste it then the text in Edit control it comes up as expected.

I am using the following code:
edt_Details = combo_Items..DisplayValue

What must be the problem.

TIA

--
Yogi Yang
Re: UNICODE problem
January 14, 2022 08:42AM
Hi Yogi Yang

And is your application configuration also in Unicode?

Mingling is never a good idea.
What's the sense of using ANSI still nowadays anyway (except if you have old incompatible pieces still hanging around in your solution of course).

Cheers

Peter H.
Re: UNICODE problem
January 15, 2022 07:32AM
Oh how dumb of me.!?!

Thanks for pointing me in the right direction. Now everything is working as expected.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: