V4RB 1.1 RB 5.5 Some questions about language
olivier vidal
vidal_olivier at yahoo.fr
Tue Jun 15 05:38:39 CDT 2004
ok, thank you, Kevin !
olivier
Le 11 juin 04, à 19:44, Kevin Windham a écrit :
> There is quite a bit of confusion regarding encodings, but basically
> there are two methods for dealing with strings that are important.
> There is DefineEncoding, and ConvertEncoding.
>
> In your case, I believe you should be using DefineEncoding, *NOT*
> ConvertEncoding. DefineEncoding simply tells RB what encoding to use
> with your string. It does not modify the bytes in the string.
> ConvertEncoding will modify the bytes in the string to change it from
> one encoding to another.
>
> So if you are getting data into your app from RB it should be in UTF8
> by default. Then you can just stuff it into Valentina as is. Then when
> you get the data out of Valentina you simply let RB know that it is
> UTF8 by using DefineEncoding. That should be all you need to do. At
> least that is my understanding. You should only use ConvertEncoding to
> change from one encoding to another, and in the scenario you
> described, I don't think you should need to change anything. Just use
> UTF8 and you should be fine.
>
> HTH,
> Kevin
More information about the Valentina
mailing list