Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: How to change Encoding coming from MySQL Webserver

Started 1 month, 2 weeks ago by Phil M
Phil M wrote: If its undefined and you KNOW its UTF8 Encoding was Undefined and I used: FirstNameField.Text = DefineEncoding( rs.Field(" firstname ").StringValue, Encodings.UTF8 ) Thanks much Phil works great. I had tried nearly every conversion but the DefineEncoding, because with the gibberish I was getting back, I assumed it could not be utf8 the server was sending. Things are not ...
Site: REAL Software Forums  REAL Software Forums - site profile
Forum: Databases  Databases - forum profile
Total authors: 3 authors
Total thread posts: 3 posts
Thread activity: no new posts during last week
Domain info for: realsoftware.com

Other posts in this thread:

dudleyH replied 1 month, 2 weeks ago
Phil M wrote: If its undefined and you KNOW its UTF8 Encoding was Undefined and I used: FirstNameField.Text = DefineEncoding( rs.Field(" firstname ").StringValue, Encodings.UTF8 ) Thanks much Phil works great. I had tried nearly every conversion but the DefineEncoding, because with the gibberish I was getting back, I assumed it could not be utf8 the server was sending. Things are not ...

jraess replied 1 month, 2 weeks ago
when it comes to exchange data with some other system, it is best to define/convert encodings in this way: - your app retrieves data: DefineEncoding (i.e. Reading a RecordSet: Define the Encoding of the retrieved data) - you send data: ConvertEncoding (i.e. you Update a RecordSet, or you execute some SQL) with these two "rules", we don't have any problems with different DB-Servers.

 

Top contributing authors

Name
Posts
dudleyH
3
user's latest post:
How to change Encoding coming...
Published (2009-11-09 10:48:00)
Phil M wrote: If its undefined and you KNOW its UTF8 Encoding was Undefined and I used: FirstNameField.Text = DefineEncoding( rs.Field(" firstname ").StringValue, Encodings.UTF8 ) Thanks much Phil works great. I had tried nearly every conversion but the DefineEncoding, because with the gibberish I was getting back, I assumed it could not be utf8 the server was sending. Things are not always what they appear to be! -Dudley...
Phil M
2
user's latest post:
How to change Encoding coming...
Published (2009-11-09 09:29:00)
To see what encoding is being used use: Code: Dim s As String s = rs.Field( "firstname" ).StringValue If Not ( s.Encoding Is Nil ) Then   MsgBox( s.Encoding.InternetName ) Else   MsgBox( "Encoding is undefined for: " + s ) End If If its undefined and you KNOW its UTF8 Code: rs = app.hhtDB.SQLSelect( "Select * from people where id = 11" ) FirstNameField.Text =...
jraess
1
user's latest post:
How to change Encoding coming...
Published (2009-11-12 08:20:00)
when it comes to exchange data with some other system, it is best to define/convert encodings in this way: - your app retrieves data: DefineEncoding (i.e. Reading a RecordSet: Define the Encoding of the retrieved data) - you send data: ConvertEncoding (i.e. you Update a RecordSet, or you execute some SQL) with these two "rules", we don't have any problems with different DB-Servers.

Related threads on "REAL Software Forums":

Related threads on other sites:

Thread profile page for "How to change Encoding coming from MySQL Webserver" on http://www.realsoftware.com. This report page is a snippet summary view from a single thread "How to change Encoding coming from MySQL Webserver", located on the Message Board at http://www.realsoftware.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity