Le 31 mars 08 à 16:57 (soir), Joe Strout a écrit:
>>> Sure you can: string.Encoding gives you exactly that.
>>
>> Yes it does, but what do you do with the result to save it and
>> retrieve it?
>
> Write out its .Code value, and upon reading, call
> Encodings.GetFromCode. (Which appears to be undocumented, but this
> is nothing more than an omission in the documentation; GetFromCode
> was certainly an intentional feature and has always worked fine.
> It's probably in the release notes somewhere around 5.0.)
Well, if you add something that the documentation does not tell, it
becomes clearer.
I wasn't sure GetFromCode and Code where both sufficient and the same
value.
Thanks, that's a great thing to know.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|