If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Visual Basic > box characters in grid cell from mysql db, illegible

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-16-10, 00:31
10west 10west is offline
Registered User
 
Join Date: Jun 2010
Posts: 3
box characters in grid cell from mysql db, illegible

I'm getting data from a mysql table to a recordset to a datagrid in VB6.

the data is a multi-line text description field, of type text (multi-line), and it is always returning encoded text like (box characters) to my grid cell (where I need to see it), everything else is fine:

I tested sending it to a msgbox, and it returns this sample:
"????????????›???"
( a bunch of question marks)
except larger length of course.
The original data is text field in a mysql db, and getting encoded enroute to a recordset read into a datagrid. Any knowledge on why this is happening or solutions?

Another clue is that in a web page, it reads as asian characters, this is not the issue though, it reads as box characters in a vb datagrid, or MSHFlexgrid, and THATS WHERE I NEED TO READ IT IN ENGLISH, why is the grid cell showing it encoded improperly, while everything else reads english correctly (albeit, single line field data)
Thanks
Reply With Quote
  #2 (permalink)  
Old 06-16-10, 10:23
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
Do you mean english or "latin character set"?

Sounds to me like you've pushing around unicode characters and trying to push them in to a grid that doesn't know how to display non-latin character sets.

Is that the case?
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #3 (permalink)  
Old 06-16-10, 14:08
10west 10west is offline
Registered User
 
Join Date: Jun 2010
Posts: 3
Yes english

Yes there is unicode english, shows as asian in a web page, but was originally an english paragraph, not so with single line elements, but in the multi-line mysql text cell, it comes to my grid as unicode.
Since it's a desc from a databse, the desc may have html, or unicode formatting I'm now assuming.
I wonder how to encode it for readability in the destination cell of my datagrid?
Thanks
Reply With Quote
  #4 (permalink)  
Old 06-16-10, 15:43
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
MSHFlexGrid does not support unicode. A popular alternative is MSHFLXGD:

INFO: Unicode Capabilities are not the Same for all Visual Basic Controls


Also, when researching this answer, it will behoove you recognize that English is merely a language that is capable of being represented by Latin character sets. Your issue has nothing to do with English vs. anything else. It has to do with Latin vs Unicode character sets. Keeping this in mind will dramatically improve the efficiency of your research.
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #5 (permalink)  
Old 06-16-10, 17:42
10west 10west is offline
Registered User
 
Join Date: Jun 2010
Posts: 3
Great, thanks

[QUOTE=Teddy;6465070]MSHFlexGrid does not support unicode. A popular alternative is MSHFLXGD:
QUOTE]

Thanks, whats the full name of that control? It looks suspiciously similar to the Hiearchical flexgrid.

Any way to covert it before it goes to a recordset, or after it's pulled from a redcordset. I resaerch when I have extra time, but this thing has been delaying me half the week. db is not my specialty, but I think it will become one! lol

Reply With Quote
Reply

Tags
box character, datagrid, encoded, illegible

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On