Character set conversions

Daniel Gibson metalcaedes at gmail.com
Tue May 31 05:57:59 PDT 2011


Am 31.05.2011 14:54, schrieb Kagamin:
> Daniel Gibson Wrote:
> 
>> I'm not talking about representing the values on the screen - I'm
>> talking about the format of CSV files.
>> And I find translated function names pretty strange.. I'm wondering how
>> well that works when opening a file with another locale etc.
> 
> Isn't it natural to get string from a cell and put it into the output CSV stream? UI also gets string from a cell and presents it.

It's natural to have an internal representation of the value of a field
and different representations in the UI (this could be dependent on
locale settings etc) and for saving it on the disk (this should really
not depend on a locale, but be portable). Ideally the different
representations can be converted to each other in a lossless way.

So the representation on the disk (as CSV, .xls, XML, whatever) doesn't
have to match the screen representation.

> 
>>> As this presentation is quite customizable, I doubt it's done by c runtime. I think it just gets string values from cells during CSV generation.



More information about the Digitalmars-d mailing list