On Dec 30, 2005, at 1:54 PM, Ruslan Zasukhin wrote:
> On 12/30/05 8:00 PM, "Charles Yeomans" <yeomans /AT/ desuetude .DOT 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
_______________________________________________ Valentina mailing list Valentina@lists.macserve.net http://lists.macserve.net/mailman/listinfo/valentina
©2005 Charles Yeomans |