[V4Rb] Encoding glitch
Charles Yeomans
yeomans at desuetude.com
Fri Dec 30 15:03:58 CST 2005
On Dec 30, 2005, at 1:54 PM, Ruslan Zasukhin wrote:
> On 12/30/05 8:00 PM, "Charles Yeomans" <yeomans at desuetude.com> wrote:
>
>> I'm seeing a small problem with text encodings in V4Rb 2.0.5. I'm
>> importing some records into a Valentina database. The text is
>> MacRoman-encoded and contains curly apostrophes; these apostrophes are
>> lost when I assign the text to a VField. In particular, if I execute
>> the following code
>>
>> c.TextField("description").Value = "Valentina’s"
>> dim foo as String = c.TextField("description").Value
>>
>> where the string "Valentina’s" is MacRoman-encoded, foo is set to
>> "Valentinas".
>>
>> If I first convert the encoding of "Valentina’s" to UTF-8, then there
>> are no problems.
>
> But all right then, Charles.
>
> You need give to V4RB the UTF8 strings.
>
> It wait for UTF8, if you give something else, why it should work ?
Because that's the way REALbasic is designed. It is the responsibility
of the called method to handle string encodings.
--------------
Charles Yeomans
More information about the Valentina
mailing list