Jump to content

Pulling out UNICODE data from mysql and sending it HTTP1.1...


shlomikalfa

Recommended Posts

hey guys,

 

The thing is, i have a MySQL DB that contains all sorts of 'Text' data which is saved in a UTF-8 UNICODE format [in the DB] now all i want to do is pull that data out of the MySQL DB and 'Echo' it,

 

Now... there is no issue while 'Echo'ing it... it works just fine through a browser... i can switch that page's encoding into UTF-8 and it's all readable and fine...

however when i try pulling this page through VB it seems like the HTTP1.1 send is failing...

 

i've also tried using:

htmlentities($OutPut, ENT_NOQUOTES, "UTF-8")

 

but it yet seems to fail...

 

Any pointers?!

well guys, i'm at my wits end....

 

It seems to be working fine with 'Echo' while it pulls out data which is not of UNICODE type [eng].

but when it pull some UNICODE data from the DB it always fails the send with VB... Works fine with browsers-> PLEASE HELP !!!

The PHP part is working all ok i think [since it does spit the data into the browser when accessed by the browser] but i think that there is some issues with sending the data via HTTP1.1 to the VB script...

 

while i'm running TCPRecv on the script the script is waiting, waiting and then tells me that the server has timed out with only just a part of the package sent.... any idea?

Well... after some """"SH1TLOAD"""" of reading i know whats the main issue atm....

 

The script

 sometimes answers in plain text and sometimes it switches to binary, i think it has to do with the charset of the content being sent....

 

Any idea if it's so ?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.