Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using activex control(rich edit), to manipulate dbcs data

Status
Not open for further replies.

emm1

Programmer
May 21, 2003
6
CY
Hi,

I'm using PB 8.0.3 (build 9704).

I am using an active X control (rich text edit) in my application.

This control can contain DBCS data also (in Chinese, japanese and korean languages). Now when I retrieve this data into the PB, I'm not able to see the characters in non-English letters correctly. I just see a '?' :-(

Please note that the problem is specific to these controls only. Otherwise I can manipulate the DBCS data perfectly in the application.

I already have a workaround to choose the PB built in rich edit control, but I do not want to(can not) use it for some reason.

Code example:-
IF I have something like &quot;manish<korean>&quot; in the ole object, then if I do
string ls
ls = ole_1.object.text
Then ls will be like &quot;manish??????&quot; i.e all Korean characters are lost :-(
Any suggestions will be helpful.

Manish



 
Hi Manish.

I am encountering similar issue. I wonder if you can help if possible. I have Japanese text in a text file which I want to display in a datawindow but it just came out as ??$$$% etc...
My PowerBuilder is 8.0.3 (build 9704) also, running on Windows2000 SP3. Do you have any solution or workaround to display Asian text? I checked out Sybase site and it seems that I need separate versions of PowerBuilder (Unicode or Japanese version)...gosh even though I can see the Japanese text side by side on my MS-Word I can get it Imported to the Datawindow and display as Japanese.

Regards
Jason Hang
 
hey

i am having a similar problem with an app i am trying to build! i am trying to allow a simple multiline edit to take in japanese scripting and convert it to a single byte character set to store in my database.

I am completely stuck and don't know where to start could you please tell me how you did this!

thanks!

Edders
 
Guys,

I am no longer working with PB for almost a year now. But I guess that I can post a workaround to this problem now.

PB 8.0.3, supports DBCS as such.

As for your question Edders, how can you convert Japanese to single byte? I guess that it is not possible....

Rgds,
Manish
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top