gettingstarted
[Top] [All Lists]

Re: Encoding problem?

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Encoding problem?
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Sat, 28 Aug 2004 20:43:24 -0500
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <BD56901F dot 9941%rb at menssana dot to dot it>
At 7:40 PM +0200 8/28/04, Fabio Soggia wrote:

I suppose it is an encoding problem.
I tried:

EditField1.Text = ConvertEncoding(Listbox1.Cell(row, 2), Encodings.UTF8)

And

EditField1.Text = ConvertEncoding(Listbox1.Cell(row, 2),
Encodings.WindowsANSI)

You should use:

 EditField1.Text = Listbox1.Cell(row, 2)

In other words, there is no point in converting the text at this point. If there is a problem, it must be earlier in the process. But the new REAL Database engine handles encodings correctly, as long as the text encoding is defined correctly when it goes in. So I think you need to back up and tell us where this text you're storing has come from.

Best,
- Joe

--
,------------------------------------------------------------------.
|    Joseph J. Strout           REAL Software, Inc.                |
|    joe at realsoftware dot com       http://www.realsoftware.com        |
`------------------------------------------------------------------'
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>