Re: what are the options for the "String" export format?
- To: mathgroup at smc.vnet.net
- Subject: [mg76619] Re: what are the options for the "String" export format?
- From: "Rolf.Mertig at gmail.com" <Rolf.Mertig at gmail.com>
- Date: Thu, 24 May 2007 06:26:33 -0400 (EDT)
- References: <200705181022.GAA13433@smc.vnet.net><465114BC.60703@wolf-ram.com>
No, you have to use "Text" if you want different character encodings. E.g., on Linux: s = FromCharacterCode[{75, 246, 108, 110}]; Export["s1", s, "String", CharacterEncoding :> $CharacterEncoding]; Export["s2", s, "String", CharacterEncoding :> "UTF8"]; Export["s3", s, "Text", CharacterEncoding :> $CharacterEncoding]; Export["s4", s, "Text", CharacterEncoding :> "UTF8"]; (Import[#1, "String"] & ) /@ {"s1", "s2", "s3", "s4"} (Import[#1, "Text"] & ) /@ {"s1", "s2", "s3", "s4"} gives some information on what is going on. Notice that, even though Options[Import] and Options[Export] return {} in Version 6, the old 5.2-options seem to work (for some of the $ExportFormats and $ImportFormats). However, interestingly enough, in the "Documentation Center",under ref/ format/Table, one finds in the OPTIONS section informations on "General" Export and Import options. But those options are not mentioned in ref/Import and ref/ Export. I find it rather regrettable that the documentation on Import and Export is so scattered now. Of course I did mail this minor observation to the Wolfram staff/ support ([WR #918498] ), but did not hear back yet. Rolf Mertig On 22 Mai, 08:49, "Chris Chiasson" <c... at chiasson.name> wrote: > not even for the character encoding? (!) > > On 5/20/07, Igor C.Antonio<i... at wolf-ram.com> wrote: > > > > > Chris Chiasson wrote: > > > thanks > > > Chris, > > > There are no options to the "String" export format. > > > Thanks, > > > Igor > > > -- > > Igor C.Antonio > > Wolfram Research, Inc. > > > To email me directly, please remove the dash. > > --http://chris.chiasson.name/
- References:
- what are the options for the "String" export format?
- From: "Chris Chiasson" <chris@chiasson.name>
- what are the options for the "String" export format?